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

Fix rendering anchor ref IDs (heading IDs) (#565) #581

Open travkin79 opened 1 year ago

travkin79 commented 1 year ago

I think, I fixed the bug described in discussion #565.

There's only one question left: The test suite ExtAttributesTestSuite fails in the case "example(Anchor Targets - Cond 4.1: 3) options(anchors)", see comparison of expected and actual output. Shouldn't the id in this case only be placed in the h1 tag?

image

travkin79 commented 1 month ago

Hi @vsch, Could you please check and merge this PR? Thank you very much.