Multiple heading ids #2396
van-de-bugger
commented
The standard way to set an id in pandoc is
# Chapter 1 {#ch01}
If you do it this way, it will work the way the docs say.
But probably we should ensure that if someone says id=foo, it
has the same effect.
ousia
commented
from this source:
# Chapter 1 {#ch1}
# Chapter 2 {id="ch2"}
you will have this HTML output (using latest stable pandoc):
<h1 id="ch1">Chapter 1</h1>
<h1 id="chapter-2" id="ch2">Chapter 2</h1>
Extended Markdown requires identifiers tagged as {#identifier}
and classes as {.class}
.
Just in case it might help.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pandoc
documentation says:However,
pandoc
assigns an identifier even if identifier is already set, causing incorrect HTML output:Note:
h1
tag has twoid
attributes.