markdown: Rename our Markdown subclass to ZulipMarkdown.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-10-06 13:46:09 -07:00 committed by Tim Abbott
parent 97be895cf0
commit 3cf91e9e45
1 changed files with 3 additions and 3 deletions

View File

@ -2103,7 +2103,7 @@ DEFAULT_MARKDOWN_KEY = -1
ZEPHYR_MIRROR_MARKDOWN_KEY = -2
class Markdown(markdown.Markdown):
class ZulipMarkdown(markdown.Markdown):
zulip_message: Optional[Message]
zulip_realm: Optional[Realm]
zulip_db_data: Optional[DbData]
@ -2322,7 +2322,7 @@ class Markdown(markdown.Markdown):
)
md_engines: Dict[Tuple[int, bool], Markdown] = {}
md_engines: Dict[Tuple[int, bool], ZulipMarkdown] = {}
linkifier_data: Dict[int, List[LinkifierDict]] = {}
@ -2332,7 +2332,7 @@ def make_md_engine(linkifiers_key: int, email_gateway: bool) -> None:
del md_engines[md_engine_key]
linkifiers = linkifier_data[linkifiers_key]
md_engines[md_engine_key] = Markdown(
md_engines[md_engine_key] = ZulipMarkdown(
linkifiers=linkifiers,
linkifiers_key=linkifiers_key,
email_gateway=email_gateway,