zulip/zerver/lib/bugdown
okay 1694831029 bugdown: Fix double processed emoji tags inside inline tags.
When an emoji is nested inside another inline tag - like em or strong -
it was getting double processed because of the way the inlinePattern
TreeProcessor runs (it runs recursively). With this fix, we set the
inner text of the emoji span as an AtomicString, preventing us from
double processing the emoji's text.

Fixes #11621

Test Plan:

* Add test case for **😄**, verify it passes.
* Go into local dev server and send "**😄**" to self and verify the DOM
does not have double <span> tags for the emoji.
* Run zerver.tests.test_push_notifications and verify the markdown test case matches
the text_content field properly
2019-05-01 17:03:15 -07:00
..
__init__.py bugdown: Fix double processed emoji tags inside inline tags. 2019-05-01 17:03:15 -07:00
api_arguments_table_generator.py api_docs: Specify max width for long code examples. 2019-01-28 22:39:54 -03:30
api_code_examples.py bugdown: Remove unused imports. 2019-02-02 17:25:22 -08:00
fenced_code.py bugdown: Remove unused imports. 2019-02-02 17:25:22 -08:00
help_emoticon_translations_table.py templates: Fix more low-hanging HTML validation problems. 2019-04-23 13:00:59 -07:00
help_relative_links.py bugdown: Remove unused imports. 2019-02-02 17:25:22 -08:00
help_settings_links.py bugdown: Remove unused imports. 2019-02-02 17:25:22 -08:00
include.py bugdown: Remove unused imports. 2019-02-02 17:25:22 -08:00
nested_code_blocks.py bugdown: Remove unused imports. 2019-02-02 17:25:22 -08:00
tabbed_sections.py help: Make minor updates to import-from-mattermost. 2019-04-16 17:49:42 -07:00
testing_mocks.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
tlds-alpha-by-domain.txt [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00