Closed MasssiveJuice08 closed 3 weeks ago
Nice, I was just about to add this issue. Doing some CSS styling, and this is really getting in the way.
Hi @jackyzha0 , I was wondering if you could lend some insight into the decision to use multiple H1 elements per-page? I'm not an expert by any means and only started learning webdev this year.
Hey, I'd agree with this! At least the sidebar elements we can fix. If people include H1 in their own Markdown, we shouldn't stop them though
Happy to take a pr for this
Cheers!
Thanks!
Describe the bug
Quartz contains multiple H1 elements on every page. These are:
<h1 class="page-title"></h1>
<h1>Explorer</h1>
<h1 class="article-title"></h1>
An HTML page should only contain one H1 heading. According to MDN,
Expected behavior Ideally only the article title should be an h1, Everything else should have a heading tag ranging from
h2-h6
and nested in the appropriate order relative to the other headings above and below them.Source '
<h1>–<h6>
: The HTML Section Heading elements', 'Avoid using multiple<h1>
elements on one page'_.You can help speed up fixing the problem by either
Desktop (please complete the following information):
Quartz Version: [e.g. v4.2.3] node Version: v20.11.1 npm version: v10.2.4 OS: Windows 11 Pro Browser: Chrome