From 09851ff2903db29703616da0fbc9ec003955712a Mon Sep 17 00:00:00 2001 From: Kevin Scott Date: Thu, 23 Sep 2021 11:29:14 +0200 Subject: [PATCH] markdown: Document built-in preprocessor priorities for convenience. Fixes #19810 --- zerver/lib/markdown/preprocessor_priorities.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zerver/lib/markdown/preprocessor_priorities.py b/zerver/lib/markdown/preprocessor_priorities.py index c4a8537b45..f0d01b54f1 100644 --- a/zerver/lib/markdown/preprocessor_priorities.py +++ b/zerver/lib/markdown/preprocessor_priorities.py @@ -1,6 +1,7 @@ # Note that in the Markdown preprocessor registry, the highest # numeric value is considered the highest priority, so the dict # below is ordered from highest-to-lowest priority. +# Priorities for the built-in preprocessors are commented out. PREPROCESSOR_PRIORITES = { "generate_parameter_description": 535, "generate_response_description": 531, @@ -10,9 +11,12 @@ PREPROCESSOR_PRIORITES = { "generate_return_values": 510, "generate_api_arguments": 505, "include": 500, + # "include_wrapper": 500, "help_relative_links": 475, "setting": 450, + # "normalize_whitespace": 30, "fenced_code_block": 25, + # "html_block": 20, "tabbed_sections": -500, "nested_code_blocks": -500, "emoticon_translations": -505,