[Lldb-commits] [lldb] [lldb][man][nfc] Don't register a markdown parser when building man packages (PR #98420)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 11 02:16:01 PDT 2024


================
@@ -89,9 +89,13 @@
 # The suffix of source filenames.
 source_suffix = {
     ".rst": "restructuredtext",
-    ".md": "markdown",
 }
 
+# Man pages do not use markdown pages, so we don't need to register a markdown
+# parser.
+if not building_man_page:
+    source_suffix[".md"] = "markdown"
+
----------------
DavidSpickett wrote:

I'd move `source_suffix` up to before the previous `if not building_man_page:` so that you can add to it during that if instead.

https://github.com/llvm/llvm-project/pull/98420


More information about the lldb-commits mailing list