mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
c367a4b9a1
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
6 lines
91 B
HTML
6 lines
91 B
HTML
<h1 id="sametitle">Same Title</h1>
|
|
|
|
<p>some text</p>
|
|
|
|
<h1 id="sametitle-1">Same Title</h1>
|