diff options
author | albert-github <albert.tests@gmail.com> | 2021-02-19 10:30:19 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2021-02-19 10:30:19 (GMT) |
commit | 19ce64fa82aa045ace623bc1288c50971cc58bea (patch) | |
tree | 98bc08aa099f59bf5f9f1805b3c6450904df79b0 | |
parent | 5fff1fc1d5b268b47fbdac2c06199b7cf42987a1 (diff) | |
download | Doxygen-19ce64fa82aa045ace623bc1288c50971cc58bea.zip Doxygen-19ce64fa82aa045ace623bc1288c50971cc58bea.tar.gz Doxygen-19ce64fa82aa045ace623bc1288c50971cc58bea.tar.bz2 |
issue #8390 Reusing documentation snippets
When `MARKDOWN_SUPPORT` is enabled run the documentation of the included file / snippet through the markdown processor (analogous to comment blocks in the different scanners).
-rw-r--r-- | src/docparser.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index b63674a..8bb2e6d 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -5153,10 +5153,15 @@ void DocPara::handleInclude(const QCString &cmdName,DocInclude::Type t) inc_line = lineBlock(inc_text, blockId); inc_text = extractBlock(inc_text, blockId); } + + Markdown markdown(fileName,inc_line); + QCString strippedDoc = stripIndentation(inc_text); + QCString processedDoc = Config_getBool(MARKDOWN_SUPPORT) ? markdown.process(strippedDoc,inc_line) : strippedDoc; + docParserPushContext(); g_fileName = fileName; setDoctokinizerLineNr(inc_line); - internalValidatingParseDoc(this,m_children,inc_text); + internalValidatingParseDoc(this,m_children,processedDoc); docParserPopContext(); } else |