diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2016-09-23 21:41:55 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2016-09-23 22:04:54 +0200 |
commit | 859acea0b5726f9b1b57856fd2e023e2180130be (patch) | |
tree | 281ee4bf18e913c3a08c58876c01df14f8be44f0 | |
parent | 00491f422b604787cfef076ddd9cae9f07d06606 (diff) | |
download | pandoc-859acea0b5726f9b1b57856fd2e023e2180130be.tar.gz |
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
-rw-r--r-- | default.html5 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/default.html5 b/default.html5 index 6b1fdb38b..5641ecb80 100644 --- a/default.html5 +++ b/default.html5 @@ -44,13 +44,13 @@ $if(title)$ <header> <h1 class="title">$title$</h1> $if(subtitle)$ -<h1 class="subtitle">$subtitle$</h1> +<p class="subtitle">$subtitle$</p> $endif$ $for(author)$ -<h2 class="author">$author$</h2> +<p class="author">$author$</p> $endfor$ $if(date)$ -<h3 class="date">$date$</h3> +<p class="date">$date$</p> $endif$ </header> $endif$ |