tag = 'h5'
elif element.tag == 'sect3':
tag = 'h6'
- elif element.tag == 'sect4':
+ elif element.tag in ['sect4', 'sect5', 'sect6']:
tag = 'h6'
logging.warning("{}: more than three levels of sections in member descriptions are not supported, stopping at <h6>".format(state.current))
elif not element.tag == 'simplesect': # pragma: no cover
/**
@brief This produces warnings
+# Markdown heading 1
+
+## Markdown heading 2
+
+### Markdown heading 3
+
#### Markdown heading 4 that's rendered the same as 3
+##### Markdown heading 5 that's rendered the same as 3
+
+###### Markdown heading 6 that's rendered the same as 3
+
Markdown heading, underlined, is misparsed
##########################################
<span class="m-doc-wrap-bumper">void </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ac03b94e5ed1aeeba4c9d31498e9a767a" class="m-doc-self">bar</a>(</span><span class="m-doc-wrap">int foo)</span></span>
</h3>
<p>This produces warnings.</p>
-<h6 id="autotoc_md3">Markdown heading 4 that's rendered the same as 3</h6><p>Markdown heading, underlined, is misparsed</p>
+<h4 id="autotoc_md3">Markdown heading 1</h4><h5 id="autotoc_md4">Markdown heading 2</h5><h6 id="autotoc_md5">Markdown heading 3</h6><h6 id="autotoc_md6">Markdown heading 4 that's rendered the same as 3</h6><p><a name="autotoc_md7"></a></p><h6>Markdown heading 5 that's rendered the same as 3</h6><h6>Markdown heading 6 that's rendered the same as 3</h6><p>Markdown heading, underlined, is misparsed</p>
</div></section>
</section>
</div>
<span class="m-doc-wrap-bumper">void </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ac03b94e5ed1aeeba4c9d31498e9a767a" class="m-doc-self">bar</a>(</span><span class="m-doc-wrap">int foo)</span></span>
</h3>
<p>This produces warnings.</p>
-<h6 id="autotoc_md3">Markdown heading 4 that's rendered the same as 3</h6><p>Markdown heading, underlined, is misparsed ##########################################</p>
+<h4 id="autotoc_md3">Markdown heading 1</h4><h5 id="autotoc_md4">Markdown heading 2</h5><h6 id="autotoc_md5">Markdown heading 3</h6><h6 id="autotoc_md6">Markdown heading 4 that's rendered the same as 3</h6><h6 id="autotoc_md7">Markdown heading 5 that's rendered the same as 3</h6><h6 id="autotoc_md8">Markdown heading 6 that's rendered the same as 3</h6><p>Markdown heading, underlined, is misparsed ##########################################</p>
</div></section>
</section>
</div>
<h1>
Content that produces warnings
</h1>
-<section id="autotoc_md4"><h2><a href="#autotoc_md4">Markdown heading 1</a></h2><section id="autotoc_md5"><h3><a href="#autotoc_md5">Markdown heading 2</a></h3><section id="autotoc_md6"><h4><a href="#autotoc_md6">Markdown heading 3</a></h4><section id="autotoc_md7"><h5><a href="#autotoc_md7">Markdown heading 4</a></h5><p><a name="autotoc_md8"></a></p><h6>Markdown heading 5</h6><h6>Markdown heading 6 that's rendered the same as 5</h6><p>Markdown heading, underlined, is misparsed</p></section></section></section></section>
+<section id="autotoc_md8"><h2><a href="#autotoc_md8">Markdown heading 1</a></h2><section id="autotoc_md9"><h3><a href="#autotoc_md9">Markdown heading 2</a></h3><section id="autotoc_md10"><h4><a href="#autotoc_md10">Markdown heading 3</a></h4><section id="autotoc_md11"><h5><a href="#autotoc_md11">Markdown heading 4</a></h5><p><a name="autotoc_md12"></a></p><h6>Markdown heading 5</h6><h6>Markdown heading 6 that's rendered the same as 5</h6><p>Markdown heading, underlined, is misparsed</p></section></section></section></section>
</div>
</div>
</div>
<h1>
Content that produces warnings
</h1>
-<section id="autotoc_md4"><h2><a href="#autotoc_md4">Markdown heading 1</a></h2><section id="autotoc_md5"><h3><a href="#autotoc_md5">Markdown heading 2</a></h3><section id="autotoc_md6"><h4><a href="#autotoc_md6">Markdown heading 3</a></h4><section id="autotoc_md7"><h5><a href="#autotoc_md7">Markdown heading 4</a></h5><section id="autotoc_md8"><h6><a href="#autotoc_md8">Markdown heading 5</a></h6><section id="autotoc_md9"><h6><a href="#autotoc_md9">Markdown heading 6 that's rendered the same as 5</a></h6><p>Markdown heading, underlined, is misparsed ##########################################</p></section></section></section></section></section></section>
+<section id="autotoc_md9"><h2><a href="#autotoc_md9">Markdown heading 1</a></h2><section id="autotoc_md10"><h3><a href="#autotoc_md10">Markdown heading 2</a></h3><section id="autotoc_md11"><h4><a href="#autotoc_md11">Markdown heading 3</a></h4><section id="autotoc_md12"><h5><a href="#autotoc_md12">Markdown heading 4</a></h5><section id="autotoc_md13"><h6><a href="#autotoc_md13">Markdown heading 5</a></h6><section id="autotoc_md14"><h6><a href="#autotoc_md14">Markdown heading 6 that's rendered the same as 5</a></h6><p>Markdown heading, underlined, is misparsed ##########################################</p></section></section></section></section></section></section>
</div>
</div>
</div>
page = 'warnings.html'
file = 'Warnings_8h.html'
output = [
+ # Once for every extra level
+ "WARNING:root:Warnings_8h.xml: more than three levels of sections in member descriptions are not supported, stopping at <h6>",
+ "WARNING:root:Warnings_8h.xml: more than three levels of sections in member descriptions are not supported, stopping at <h6>",
"WARNING:root:Warnings_8h.xml: more than three levels of sections in member descriptions are not supported, stopping at <h6>",
"WARNING:root:warnings.xml: more than five levels of sections are not supported, stopping at <h6>",
]
page = 'warnings-110.html'
file = 'Warnings_8h-110.html'
output = [
+ # Once for the first extra level, then two more for another
"WARNING:root:Warnings_8h.xml: more than three levels of sections in member descriptions are not supported, stopping at <h6>",
+ 'WARNING:root:Warnings_8h.xml: more than three levels of Markdown headings in member descriptions are not supported, stopping at <h6>',
+ 'WARNING:root:Warnings_8h.xml: more than three levels of Markdown headings in member descriptions are not supported, stopping at <h6>',
"WARNING:root:Warnings_8h.xml: a Markdown heading underline was apparently misparsed by Doxygen, prefix the headings with # instead",
"WARNING:root:warnings.xml: more than five levels of Markdown headings for top-level docs are not supported, stopping at <h6>",
"WARNING:root:warnings.xml: a Markdown heading underline was apparently misparsed by Doxygen, prefix the headings with # instead",