diff options
author | albert-github <albert.tests@gmail.com> | 2019-02-16 12:44:45 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-02-28 19:52:56 (GMT) |
commit | 79ace06168f1e09fce00515248d83571302a67ae (patch) | |
tree | 588f7234e7c6834d19d066f692488221ac993de8 /src | |
parent | 2e6c4200f05116119c4d27b221375f5393f260bd (diff) | |
download | Doxygen-79ace06168f1e09fce00515248d83571302a67ae.zip Doxygen-79ace06168f1e09fce00515248d83571302a67ae.tar.gz Doxygen-79ace06168f1e09fce00515248d83571302a67ae.tar.bz2 |
issue #6840 Hash character in Markdown code span not rendered correctly
A hash sign has a special meaning, so it should be escaped in a code span.
Diffstat (limited to 'src')
-rw-r--r-- | src/markdown.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index 93a4c91..56d160b 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -138,6 +138,7 @@ static QCString escapeSpecialChars(const QCString &s) case '>': if (!insideQuote) { growBuf.addChar('\\'); } growBuf.addChar('>'); break; case '\\': if (!insideQuote) { growBuf.addChar('\\'); } growBuf.addChar('\\'); break; case '@': if (!insideQuote) { growBuf.addChar('\\'); } growBuf.addChar('@'); break; + case '#': if (!insideQuote) { growBuf.addChar('\\'); } growBuf.addChar('#'); break; default: growBuf.addChar(c); break; } pc=c; |