Put only one heading element in top-level header
Every heading element semantically creates a new section. Three consecutive heading elements, e.g. `<h1></h1>`, `<h2></h2>`, `<h3></h3>`, are semantically equivallent to a section with two nested subsections. This is not the intended meaning of subtitle, author, and date, making plain `<p>` elements the better choice. This is one of the W3C's [common idioms]. This change is the result of discussions on issue jgm/pandoc#3119. [common idioms]: https://www.w3.org/TR/html5/common-idioms.html#common-idioms Fixes: jgm/pandoc#3119
This commit is contained in:
parent
00491f422b
commit
859acea0b5
1 changed files with 3 additions and 3 deletions
|
@ -44,13 +44,13 @@ $if(title)$
|
||||||
<header>
|
<header>
|
||||||
<h1 class="title">$title$</h1>
|
<h1 class="title">$title$</h1>
|
||||||
$if(subtitle)$
|
$if(subtitle)$
|
||||||
<h1 class="subtitle">$subtitle$</h1>
|
<p class="subtitle">$subtitle$</p>
|
||||||
$endif$
|
$endif$
|
||||||
$for(author)$
|
$for(author)$
|
||||||
<h2 class="author">$author$</h2>
|
<p class="author">$author$</p>
|
||||||
$endfor$
|
$endfor$
|
||||||
$if(date)$
|
$if(date)$
|
||||||
<h3 class="date">$date$</h3>
|
<p class="date">$date$</p>
|
||||||
$endif$
|
$endif$
|
||||||
</header>
|
</header>
|
||||||
$endif$
|
$endif$
|
||||||
|
|
Loading…
Add table
Reference in a new issue