New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown table of contents depth cannot be bigger than TOC_INCLUDE_HEADINGS #8457
Comments
This is not an easy problem as it has multiple components.
Further we also have to look at the treeview (at the right) when The markdown processor does hardly know anything about the used doxygen commands (just a little about some block commands like |
Mhm, does the markdown processor need to know? Lines 1004 to 1008 in 72bce74
and replace it with the doxygen command Lines 1021 to 1030 in 72bce74
If I directly put Edit: |
When you would put a |
Yes and the output would only have one tree of contents. But I'm not sure if we are talking about the same thing: I want to use However, Sorry if I wasn't clear enough and/or didn't get your earlier comment about how this affects markdown parsing. |
I think that in the later case (at least at the moment) best is to use also the |
Describe the bug
Doxyfile:
TOC_INCLUDE_HEADINGS = 2
Markdown:
Will result in a TOC with a depth of 2.
Expected behavior
TOC should have a depth of 3.
To Reproduce
example.tar.gz
Version
1.9.2 (72bce7443241675a63ac53739bafa1d00cdbe372)
Stack trace
Not using
[TOC]
will prevent the markdown processor to replace it with@tableofcontents{html:TOC_INCLUDE_HEADINGS_VALUE}
.However,
doxygen/src/markdown.cpp
Line 1485 in 72bce74
will still check if the given depth is smaller than the value in
TOC_INCLUDE_HEADINGS
. Simply removing the check for<=
will result in a TOC depth of 3.I think the
TOC_INCLUDE_HEADINGS
should act more like a default and not restrict the TOC depth if you wish to explicitly overwrite it. Currently, you can decrease the depth, but you cannot increase it.The text was updated successfully, but these errors were encountered: