Skip to content

Commit

Permalink
Merge pull request doxygen#10903 from albert-github/feature/issue_10902
Browse files Browse the repository at this point in the history
issue doxygen#10902 Improve Markdown Support - blockquotes with special markers parse wrongly
  • Loading branch information
doxygen committed Jun 2, 2024
2 parents 140a8ba + 07f0fb7 commit 4d93134
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/markdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2787,7 +2787,12 @@ size_t Markdown::Private::writeBlockQuote(std::string_view data)
}
if (level==0) break; // end of quote block
// copy line without quotation marks
if (curLevel != 0 || !isGitHubAlert) out+=data.substr(indent,end-indent);
if (curLevel != 0 || !isGitHubAlert)
{
QCString txt = data.substr(indent,end-indent);
if (txt.stripWhiteSpace().isEmpty() && !startCmd.isEmpty()) out += "<br><br>\n";
else out += txt;
}
else out+= "\n";
curLevel=level;
// proceed with next line
Expand Down

0 comments on commit 4d93134

Please sign in to comment.