Skip to content

Commit

Permalink
issue #7043 html output for markdown: different output when using '# …
Browse files Browse the repository at this point in the history
…Header {#mainpage}' and 'Header {#mainpage}\n===='

In case of an ATX header the id was overwritten again by the subsequent call to extractTitleId, this should only happen in case of a non ATX header ('===' headers returned already beforehand).
  • Loading branch information
albert-github committed Jun 9, 2019
1 parent efbfb54 commit 38924a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/markdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2439,7 +2439,10 @@ static QCString extractPageTitle(QCString &docs,QCString &id)
{
docs=docs.mid(end1);
}
id = extractTitleId(title, 0);
else
{
id = extractTitleId(title, 0);
}
//printf("extractPageTitle(title='%s' docs='%s' id='%s')\n",title.data(),docs.data(),id.data());
return title;
}
Expand Down

0 comments on commit 38924a2

Please sign in to comment.