zulip/zerver/lib/bugdown
Rohitt Vashishtha 630c564fc7 bugdown: Rewrite List Preprocessor logic to properly parse fences.
Previously, we didn't track opening and closing fences separately,
with led to bugs like not parsing a list that was immediately after
a quoted fence; we treated each ``` as a new fence.

This commit rewrites the function to maintain a stack of currently
open fences. If any of the parent fences is a code fence, we do not
insert a new line before a list.

We also add some test cases specifically to test this behavior with
complexly nested lists.

Fixes #13745.
2020-01-27 17:14:27 -08:00
..
__init__.py bugdown: Rewrite List Preprocessor logic to properly parse fences. 2020-01-27 17:14:27 -08:00
api_arguments_table_generator.py bugdown: Cast enum elements to string in APIArgumentsTablePreprocessor. 2019-10-07 11:42:52 -07:00
api_code_examples.py openapi: Specify securityScheme for the API in root level. 2019-12-06 11:19:08 -08:00
fenced_code.py openapi: Suggest the -sS options to curl. 2019-08-17 11:35:08 -07: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 exports: Update wording on settings page, /help and /features. 2019-08-22 13:17:03 -07: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