git.iko.soy/typeable/pandoc
on master help sign in
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

commit859acea0b5726f9b1b57856fd2e023e2180130be authorAlbert Krewinkel <albert@zeitkraut.de> dateFri 23 Sep 2016, 21:41 (10 years ago) parent00491f4
1 file changed+3−3
default.html5+3−3
default.html5+3−3
@@ -44,13 +44,13 @@ $if(title)$
4444<header>
4545<h1 class="title">$title$</h1>
4646$if(subtitle)$
47−<h1 class="subtitle">$subtitle$</h1>
47+<p class="subtitle">$subtitle$</p>
4848$endif$
4949$for(author)$
50−<h2 class="author">$author$</h2>
50+<p class="author">$author$</p>
5151$endfor$
5252$if(date)$
53−<h3 class="date">$date$</h3>
53+<p class="date">$date$</p>
5454$endif$
5555</header>
5656$endif$