showdown/test/cases/repeated-headers.html
Estevão Soares dos Santos c367a4b9a1 feat(uniqueHeaderId): add unique id prefix and suffix to headers
If two headers have similar texts, the generated id could be equal. In order to prevent id clash:
  - A unique suffix is added if a header id already exists
  - Option to add a prefix to header id
  - Update of correspondent tests
  - (credits to nicovalencia)

Closes #81, closes #82
2015-01-18 02:12:32 +00:00

6 lines
91 B
HTML

<h1 id="sametitle">Same Title</h1>
<p>some text</p>
<h1 id="sametitle-1">Same Title</h1>