Navigation Menu

Skip to content

Commit

Permalink
issue #6840 Hash character in Markdown code span not rendered correctly
Browse files Browse the repository at this point in the history
A hash sign has a special meaning, so it should be escaped in a code span.
  • Loading branch information
albert-github authored and doxygen committed Feb 28, 2019
1 parent 2e6c420 commit 79ace06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/markdown.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 79ace06

Please sign in to comment.