From 6c1abe934b1cad459167e77585fc29ff842037eb Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Sun, 27 Jan 2019 15:36:42 +0100 Subject: [PATCH] Revert "Fix parsing of unclosed Markdown delimiters." This reverts commit a8ea6504e9b79aa431fcb09123fe6e50c4f24c97. It causes problems for colour support and it doesn't really fix the issue in full generality. The proper fix is to include a real Markdown parser. --- matrix/colors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/colors.py b/matrix/colors.py index 2381d21..ceb2589 100644 --- a/matrix/colors.py +++ b/matrix/colors.py @@ -218,7 +218,7 @@ class Formatted(object): text = text + line[i] i = i + 1 - substrings.append(FormattedString(text, DEFAULT_ATTRIBUTES.copy())) + substrings.append(FormattedString(text, attributes)) return cls(substrings) @classmethod