[wp-meta] [Making WordPress.org] #5991: Handbook TOC can get confused with badly nested headers
Making WordPress.org
noreply at wordpress.org
Wed Dec 22 07:06:37 UTC 2021
#5991: Handbook TOC can get confused with badly nested headers
-----------------------+--------------------
Reporter: dd32 | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: Handbooks | Keywords:
-----------------------+--------------------
The Handbook TOC code is used in Handbooks and in HelpHub. Today I ran
into this article which has a bad TOC:
https://wordpress.org/support/article/using-filezilla/
{{{
<h3>Why would I want to download FileZilla?</h3>
<h2>Setting Up the Options</h2>
<h2>Connecting</h2>
<h2>Troubleshooting</h2>
<h2>Resources</h2>
}}}
which results in a TOC of:
{{{
<div class="table-of-contents">
<h3>Topics</h3>
<ul class="items">
<li>
<a href="#why-would-i-want-to-download-filezilla">Why would I want
to download FileZilla?</a>
</ul></li>
<li><a href="#setting-up-the-options">Setting Up the Options</a></li>
<li><a href="#connecting">Connecting</a></li>
<li><a href="#troubleshooting">Troubleshooting</a></li>
<li><a href="#resources">Resources</a>
</ul>
</div>
}}}
Obviously the structure of the headings in the source is incorrect, but we
can probably account for this in the TOC plugin
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5991>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list