font color → span mx color for outgoing HTML

Also remove HTML_PROCESSOR `filter_inline` and `from_markdown_inline`
methods. `filter` and `from_markdown` now take an `inline` argument.
This commit is contained in:
miruka
2019-12-20 15:36:01 -04:00
parent 335d931b0a
commit 44e5de02f8
4 changed files with 58 additions and 35 deletions

View File

@@ -239,7 +239,8 @@ class Event(ModelItem):
def __post_init__(self) -> None:
if not self.inline_content:
self.inline_content = HTML_PROCESSOR.filter_inline(self.content)
self.inline_content = \
HTML_PROCESSOR.filter(self.content, inline=True)
def __lt__(self, other: "Event") -> bool: