zulip/zerver/lib/markdown
Prakhar Pratyush 0891f9f65a mention: Determine @topic mention during message rendering.
This commit adds a boolean field `mentions_topic_wildcard`
to the `MessageRenderingResult` dataclass.

The field is set to true only if message rendering determines
the message has an actual topic wildcard mention in it (and not,
e.g., topic wildcard mention syntax inside a code block).

The rendered content for topic wildcard mention is
'<span class="topic-mention">{wildcard}</span>'.

The 'topic-mention' class is the identifier for the wildcard
mention being a topic wildcard mention.

We don't use 'data-user-id="*"' and "user-mention" class for
topic wildcard mentions and eventually plan to remove them for
stream wildcard mentions too in a separate mini-project.
2023-07-13 11:34:48 -07:00
..
__init__.py mention: Determine @topic mention during message rendering. 2023-07-13 11:34:48 -07:00
api_arguments_table_generator.py black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
api_return_values_table_generator.py response: Implement ignored parameters with MutableJsonResponse class. 2023-03-06 10:33:13 -08:00
fenced_code.py markdown: Fix use of pure_markdown for non-pure markdown rendering. 2023-03-17 08:46:25 -07:00
help_emoticon_translations_table.py markdown: Rename preprocessor_priorities module to priorities. 2022-06-26 17:36:31 -07:00
help_relative_links.py web: Save a 301 redirect from /billing to /billing/. 2023-03-24 14:51:01 -07:00
help_settings_links.py settings: Change "Display settings" to "Preferences". 2023-07-12 07:09:03 -07:00
include.py ruff: Fix N818 exception name should be named with an Error suffix. 2022-11-17 16:52:00 -08:00
nested_code_blocks.py ruff: Fix SIM102 nested `if` statements. 2023-01-23 11:18:36 -08:00
priorities.py markdown: Rewrite /static/ images to use staticfiles_storage.url. 2023-02-14 17:17:06 -05:00
static.py markdown: Rewrite /static/ images to use staticfiles_storage.url. 2023-02-14 17:17:06 -05:00
tabbed_sections.py lib-markdown: Rename confusing variable name in `tabbed_sections.py`. 2023-06-24 07:47:25 -07:00