diff options
| author | aidanfnv <aidanf@nvidia.com> | 2025-05-14 11:30:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-14 18:30:35 +0000 |
| commit | 4a3872cd3bbc44036e8acec0ba57233e1eab51e8 (patch) | |
| tree | ef02d5fe9aff43ea001600ac37bd2df0a83c7ca4 /source | |
| parent | 375ecfe2903b09f07abeba2eafb88d9a564c1458 (diff) | |
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.
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-doc-markdown-writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |
