flexmark-java icon indicating copy to clipboard operation
flexmark-java copied to clipboard

ID attibutes specifed with {#} syntax don't appear when not using anchorlinks.

Open tom-clik opened this issue 4 years ago • 0 comments

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'>
com.vladsch.flexmark flexmark-all 0.62.2

tom-clik avatar Sep 15 '21 12:09 tom-clik