flexmark-java
flexmark-java copied to clipboard
ID attibutes specifed with {#} syntax don't appear when not using anchorlinks.
Using the attribute extension you can specify an id using a # short cut e.g. {#anchor-name}
These work when using the anchorLinks extension but not without it.
- [X] extension(s)
To Reproduce
Ensure attributes is on and anchorLinks is off. Parse sample text below.
# Title {#title}
## Heading with class {#myid .class otheratt=whatver}
Expected behavior Should render id attribute
<h1 id='title'>Title</title>
<h2 id='myid' class='class' otheratt='whatver'>
Resulting Output It is best to provide one of the following (in decreasing order of value):
<h1>Title</title>
<h2 class='class' otheratt='whatver'>