When the autoHeader option is set to true, the following HTML is generated:
But when an h1 tag is found in markdown, it is converted to the following HTML:
<h1 id="title">
<a href="#/?id=title" data-id="title" class="anchor">
<span>Title</span>
</a>
</h1>
This inconsistency creates a few issues:
- These elements behave differently, but they shouldn't.
- These elements may not look the same if theme authors are using the additional attributes and/or HTML tags from the second example as hooks for styling
- These elements cannot be processed the same way by plugins
Summary: Render elements added via the autoHeader the same as header elements found in markdown.
Thanks!
When the
autoHeaderoption is set totrue, the following HTML is generated:But when an
h1tag is found in markdown, it is converted to the following HTML:This inconsistency creates a few issues:
Summary: Render elements added via the
autoHeaderthe same as header elements found in markdown.Thanks!