zulip/zerver/lib/markdown
Alex Vandiver 1ac0035f8c markdown: Allow whitespace overlaps in topic linkifiers.
`prepare_linkifier_pattern`, as of db934be064, adds a match to the
end of the regex, of either the end of string, or a non-word character
-- this is in place of a negative look-ahead, which is no longer
possible in re2.  This causes the regex to consume trailing
whitespace, and thus not be able to match twice in succession with
`pattern.finditer` -- "#1234 #5678" fails to match because the space
is consumed by the first match of the regex.

Rather than use `pattern.finditer`, write own own version, which
rewinds over the non-word character consumed after the match, if any.
This allows the same "after" non-word character to also satisfy the
"before" of the next match.

Fixes #21502.
2022-03-22 15:40:03 -07:00
..
__init__.py markdown: Allow whitespace overlaps in topic linkifiers. 2022-03-22 15:40:03 -07:00
api_arguments_table_generator.py api_docs: Fix enum strings in parameters to have quotes. 2022-01-27 13:03:20 -08:00
api_return_values_table_generator.py api_docs: Add check for extra `additionalProperties` in return vals. 2022-02-02 17:25:58 -08:00
fenced_code.py docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
help_emoticon_translations_table.py markdown: Organize preprocessor priorities in one place. 2021-09-20 16:57:43 -07:00
help_relative_links.py help: Fix label for Subscribed tab in stream settings. 2022-03-18 14:28:20 -07:00
help_settings_links.py user docs: Add documentation for configuring new user defaults. 2021-09-21 16:43:35 -07:00
include.py markdown: Organize preprocessor priorities in one place. 2021-09-20 16:57:43 -07:00
nested_code_blocks.py markdown: Organize preprocessor priorities in one place. 2021-09-20 16:57:43 -07:00
preprocessor_priorities.py markdown: Document built-in preprocessor priorities for convenience. 2021-09-27 10:42:09 -07:00
tabbed_sections.py help_docs: Extend options for getting links to Zulip content. 2022-03-22 12:38:09 -07:00
testing_mocks.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00