Skip to content

Commit 19ce64f

Browse files
committed
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).
1 parent 5fff1fc commit 19ce64f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/docparser.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -5153,10 +5153,15 @@ void DocPara::handleInclude(const QCString &cmdName,DocInclude::Type t)
51535153
inc_line = lineBlock(inc_text, blockId);
51545154
inc_text = extractBlock(inc_text, blockId);
51555155
}
5156+
5157+
Markdown markdown(fileName,inc_line);
5158+
QCString strippedDoc = stripIndentation(inc_text);
5159+
QCString processedDoc = Config_getBool(MARKDOWN_SUPPORT) ? markdown.process(strippedDoc,inc_line) : strippedDoc;
5160+
51565161
docParserPushContext();
51575162
g_fileName = fileName;
51585163
setDoctokinizerLineNr(inc_line);
5159-
internalValidatingParseDoc(this,m_children,inc_text);
5164+
internalValidatingParseDoc(this,m_children,processedDoc);
51605165
docParserPopContext();
51615166
}
51625167
else

0 commit comments

Comments
 (0)