[libcxx-commits] [libcxx] bd40d56 - [libc++] Fix backslash substitution in RST synchronization scripts

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 13 09:19:34 PST 2026


Author: Louis Dionne
Date: 2026-01-13T12:19:21-05:00
New Revision: bd40d567e068e0b523b4af7a65604b9eec50005f

URL: https://github.com/llvm/llvm-project/commit/bd40d567e068e0b523b4af7a65604b9eec50005f
DIFF: https://github.com/llvm/llvm-project/commit/bd40d567e068e0b523b4af7a65604b9eec50005f.diff

LOG: [libc++] Fix backslash substitution in RST synchronization scripts

Added: 
    

Modified: 
    libcxx/utils/conformance

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/conformance b/libcxx/utils/conformance
index 2b1d59a45ae55..20750204fce50 100755
--- a/libcxx/utils/conformance
+++ b/libcxx/utils/conformance
@@ -54,7 +54,7 @@ def rst_to_markdown(text: str) -> str:
 
 def markdown_to_rst(text: str) -> str:
     """Best effort conversion from Markdown to RST assuming a single line of text."""
-    return text.replace('`', '``')
+    return re.sub(r'(?<!`)`(?!`)', '``', text)
 
 class PaperStatus:
     TODO = 1


        


More information about the libcxx-commits mailing list