summaryrefslogtreecommitdiffstats
path: root/src/fortranscanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-06-15 17:25:46 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-06-16 19:30:41 (GMT)
commite922facbb92cda058eae33f58f7640be8d1fb5b8 (patch)
treeae45b9db9d6ed339b28ba22199e75bcf16993318 /src/fortranscanner.l
parent3040df2f0aa29a4207de5b37da1d20e3d27340bb (diff)
downloadDoxygen-e922facbb92cda058eae33f58f7640be8d1fb5b8.zip
Doxygen-e922facbb92cda058eae33f58f7640be8d1fb5b8.tar.gz
Doxygen-e922facbb92cda058eae33f58f7640be8d1fb5b8.tar.bz2
Refactor: modernize markdown and make it thread-safe
Diffstat (limited to 'src/fortranscanner.l')
-rw-r--r--src/fortranscanner.l8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fortranscanner.l b/src/fortranscanner.l
index 852c4d9..195293f 100644
--- a/src/fortranscanner.l
+++ b/src/fortranscanner.l
@@ -2514,7 +2514,8 @@ static void handleCommentBlock(yyscan_t yyscanner,const QCString &doc,bool brief
int lineNr = brief ? yyextra->current->briefLine : yyextra->current->docLine;
int position=0;
bool needsEntry = FALSE;
- QCString processedDoc = processMarkdownForCommentBlock(doc,yyextra->fileName,lineNr);
+ Markdown markdown(yyextra->fileName,lineNr);
+ QCString processedDoc = Config_getBool(MARKDOWN_SUPPORT) ? markdown.process(doc) : doc;
while (yyextra->commentScanner.parseCommentBlock(
yyextra->thisParser,
yyextra->docBlockInBody ? yyextra->subrCurrent.back().get() : yyextra->current.get(),
@@ -2526,8 +2527,9 @@ static void handleCommentBlock(yyscan_t yyscanner,const QCString &doc,bool brief
yyextra->docBlockInBody,
yyextra->defaultProtection,
position,
- needsEntry
- ))
+ needsEntry,
+ Config_getBool(MARKDOWN_SUPPORT)
+ ))
{
DBG_CTX((stderr,"parseCommentBlock position=%d [%s] needsEntry=%d\n",position,doc.data()+position,needsEntry));
if (needsEntry) addCurrentEntry(yyscanner,false);