summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-01-14 19:10:21 (GMT)
committerGitHub <noreply@github.com>2020-01-14 19:10:21 (GMT)
commiteb365849aa3c539e5ed13bc4b3f1e76a4f4421d6 (patch)
tree436988d6bc068f58b4624a2607d465235ece6a70
parent8f71c69d1517f5259652a739830c732983d118aa (diff)
parent77feb077388e2539c17b9709750553d7454626f2 (diff)
downloadDoxygen-eb365849aa3c539e5ed13bc4b3f1e76a4f4421d6.zip
Doxygen-eb365849aa3c539e5ed13bc4b3f1e76a4f4421d6.tar.gz
Doxygen-eb365849aa3c539e5ed13bc4b3f1e76a4f4421d6.tar.bz2
Merge pull request #7511 from albert-github/feature/bug_anchor_mainpage
A mainpage doesn't have an anchor to jump to
-rw-r--r--src/markdown.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index aa64aa2..d0262b3 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -2660,11 +2660,13 @@ void MarkdownOutlineParser::parseInput(const char *fileName,
QFileInfo(mdfileAsMainPage).absFilePath()) // file reference with path
)
{
+ docs.prepend("@anchor " + id + "\n");
docs.prepend("@mainpage "+title+"\n");
}
else if (id=="mainpage" || id=="index")
{
if (title.isEmpty()) title = titleFn;
+ docs.prepend("@anchor " + id + "\n");
docs.prepend("@mainpage "+title+"\n");
}
else