diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-01-14 19:10:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 19:10:21 (GMT) |
commit | eb365849aa3c539e5ed13bc4b3f1e76a4f4421d6 (patch) | |
tree | 436988d6bc068f58b4624a2607d465235ece6a70 | |
parent | 8f71c69d1517f5259652a739830c732983d118aa (diff) | |
parent | 77feb077388e2539c17b9709750553d7454626f2 (diff) | |
download | Doxygen-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.cpp | 2 |
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 |