From 4a3872cd3bbc44036e8acec0ba57233e1eab51e8 Mon Sep 17 00:00:00 2001 From: aidanfnv Date: Wed, 14 May 2025 11:30:35 -0700 Subject: Do not escape markdown between backticks (#7086) Fixes shader-slang/shader-slang.github.io#95 The current Standard Modules Reference markdown generator escapes characters in code in the Conditional Conformances sections, which is not necessary, as characters between backticks in markdown are already escaped. On GitHub, the redundant escape slashes are ignored, but on both ReadTheDocs and GitHub Pages the escape slashes are still visible. This change removes the redundant escaping. --- source/slang/slang-doc-markdown-writer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/slang/slang-doc-markdown-writer.cpp b/source/slang/slang-doc-markdown-writer.cpp index 50fd739cb..f9d615ddb 100644 --- a/source/slang/slang-doc-markdown-writer.cpp +++ b/source/slang/slang-doc-markdown-writer.cpp @@ -2036,7 +2036,7 @@ void DocMarkdownWriter::writeAggType( ASTPrinter printer(m_astBuilder); printer.addDeclPath(aggTypeDecl->getDefaultDeclRef()); out << "`" << printer.getString() << "` additionally conforms to `"; - out << escapeMarkdownText(inheritanceDecl->base.type->toString()); + out << inheritanceDecl->base.type->toString(); if (nonEmptyLines.getCount() != 0) { out << "` when the following conditions are met:\n\n"; -- cgit v1.2.3