From 38924a2423ce806357b66465ec39a35868c5cb71 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 9 Jun 2019 13:53:04 +0200 Subject: issue #7043 html output for markdown: different output when using '# 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). --- src/markdown.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/markdown.cpp b/src/markdown.cpp index 15f119b..8670642 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -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; } -- cgit v0.12