# Render as <section> in toplevel desc
if state.parsing_toplevel_desc:
assert parsed.section
- assert not parsed.templates and not parsed.params and not parsed.return_value and not parsed.return_values and not parsed.exceptions
+ if parsed.templates or parsed.params or parsed.return_value or parsed.return_values or parsed.exceptions:
+ logging.warning("{}: unexpected @tparam / @param / @return / @retval / @exception found inside a @section, ignoring".format(state.current))
# Top-level section has no ID or title
if not out.section: out.section = ('', '', [])
<div class="m-block m-default">
<h3>Contents</h3>
<ul>
+ <li><a href="#section">A section</a></li>
<li>
Reference
<ul>
</li>
</ul>
</div>
+<section id="section"><h2><a href="#section">A section</a></h2></section>
<section id="enum-members">
<h2><a href="#enum-members">Enums</a></h2>
<dl class="m-dox">