vsch / flexmark-java

CommonMark/Markdown Java parser with source level AST. CommonMark 0.28, emulation of: pegdown, kramdown, markdown.pl, MultiMarkdown. With HTML to MD, MD to PDF, MD to DOCX conversion modules.
BSD 2-Clause "Simplified" License
2.21k stars 260 forks source link

Revert "Update CoreNodeRenderer.java" #569

Closed vsch closed 1 year ago

vsch commented 1 year ago

Reverts vsch/flexmark-java#534

After taking a closer look and running tests, I realized that this needs a bit of clarification.

Mainly, why do you not have renderHeaderId option enabled? When rendering anchor links, header ids are not rendered because the id is transferred to the anchor link. Otherwise, you get two elements with the same ID.