We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
markdown: Document built-in preprocessor priorities.
As a follow-up to #19783, it would be good to document the priorities assigned to the built-in preprocessors that the Python-Markdown library has. A couple of notes:
- This involves a bit of grunt work, the quickest way to do this is to loop over and print `md_engine.preprocessors._priorities` in `zerver/lib/templates.py`.
- Note that in `templates.py`, there are different cases where different sets of preprocessors are added, so one has to do the additional work to figure out which preprocessors are running in which of those cases and then document all the priorities that are for built-in preprocessors.
- The file to put these priorities in is: `zerver/lib/markdown/preprocessor_priorities..py`.

Thanks!

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `zerver/lib/markdown/preprocessor_priorities.py`
Content:
```
1 # Note that in the Markdown preprocessor registry, the highest
2 # numeric value is considered the highest priority, so the dict
3 # below is ordered from highest-to-lowest priority.
4 PREPROCESSOR_PRIORITES = {
5     "generate_parameter_description": 535,
6     "generate_response_description": 531,
7     "generate_api_title": 531,
8     "generate_api_description": 530,
9     "generate_code_example": 525,
10     "generate_return_values": 510,
11     "generate_api_arguments": 505,
12     "include": 500,
13     "help_relative_links": 475,
14     "setting": 450,
15     "fenced_code_block": 25,
16     "tabbed_sections": -500,
17     "nested_code_blocks": -500,
18     "emoticon_translations": -505,
19 }
20
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/zerver/lib/markdown/preprocessor_priorities.py b/zerver/lib/markdown/preprocessor_priorities.py
--- 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 @@
     "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,

{"golden_diff": "diff --git a/zerver/lib/markdown/preprocessor_priorities.py b/zerver/lib/markdown/preprocessor_priorities.py\n--- a/zerver/lib/markdown/preprocessor_priorities.py\n+++ b/zerver/lib/markdown/preprocessor_priorities.py\n@@ -1,6 +1,7 @@\n # Note that in the Markdown preprocessor registry, the highest\n # numeric value is considered the highest priority, so the dict\n # below is ordered from highest-to-lowest priority.\n+# Priorities for the built-in preprocessors are commented out.\n PREPROCESSOR_PRIORITES = {\n     \"generate_parameter_description\": 535,\n     \"generate_response_description\": 531,\n@@ -10,9 +11,12 @@\n     \"generate_return_values\": 510,\n     \"generate_api_arguments\": 505,\n     \"include\": 500,\n+    # \"include_wrapper\": 500,\n     \"help_relative_links\": 475,\n     \"setting\": 450,\n+    # \"normalize_whitespace\": 30,\n     \"fenced_code_block\": 25,\n+    # \"html_block\": 20,\n     \"tabbed_sections\": -500,\n     \"nested_code_blocks\": -500,\n     \"emoticon_translations\": -505,\n", "issue": "markdown: Document built-in preprocessor priorities.\nAs a follow-up to #19783, it would be good to document the priorities assigned to the built-in preprocessors that the Python-Markdown library has. A couple of notes:\r\n- This involves a bit of grunt work, the quickest way to do this is to loop over and print `md_engine.preprocessors._priorities` in `zerver/lib/templates.py`.\r\n- Note that in `templates.py`, there are different cases where different sets of preprocessors are added, so one has to do the additional work to figure out which preprocessors are running in which of those cases and then document all the priorities that are for built-in preprocessors.\r\n- The file to put these priorities in is: `zerver/lib/markdown/preprocessor_priorities..py`.\r\n\r\nThanks!\n", "before_files": [{"content": "# Note that in the Markdown preprocessor registry, the highest\n# numeric value is considered the highest priority, so the dict\n# below is ordered from highest-to-lowest priority.\nPREPROCESSOR_PRIORITES = {\n    \"generate_parameter_description\": 535,\n    \"generate_response_description\": 531,\n    \"generate_api_title\": 531,\n    \"generate_api_description\": 530,\n    \"generate_code_example\": 525,\n    \"generate_return_values\": 510,\n    \"generate_api_arguments\": 505,\n    \"include\": 500,\n    \"help_relative_links\": 475,\n    \"setting\": 450,\n    \"fenced_code_block\": 25,\n    \"tabbed_sections\": -500,\n    \"nested_code_blocks\": -500,\n    \"emoticon_translations\": -505,\n}\n", "path": "zerver/lib/markdown/preprocessor_priorities.py"}], "after_files": [{"content": "# Note that in the Markdown preprocessor registry, the highest\n# numeric value is considered the highest priority, so the dict\n# below is ordered from highest-to-lowest priority.\n# Priorities for the built-in preprocessors are commented out.\nPREPROCESSOR_PRIORITES = {\n    \"generate_parameter_description\": 535,\n    \"generate_response_description\": 531,\n    \"generate_api_title\": 531,\n    \"generate_api_description\": 530,\n    \"generate_code_example\": 525,\n    \"generate_return_values\": 510,\n    \"generate_api_arguments\": 505,\n    \"include\": 500,\n    # \"include_wrapper\": 500,\n    \"help_relative_links\": 475,\n    \"setting\": 450,\n    # \"normalize_whitespace\": 30,\n    \"fenced_code_block\": 25,\n    # \"html_block\": 20,\n    \"tabbed_sections\": -500,\n    \"nested_code_blocks\": -500,\n    \"emoticon_translations\": -505,\n}\n", "path": "zerver/lib/markdown/preprocessor_priorities.py"}]}