Skip to content

Commit

Permalink
Markdown: Text converter do not make duplicate header id (closes gsan…
Browse files Browse the repository at this point in the history
  • Loading branch information
gsantner committed May 31, 2023
1 parent ab21754 commit 5bde6f7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ public String convertMarkup(String markup, Context context, boolean isExportInLi

// Add id to headers
options.set(HtmlRenderer.GENERATE_HEADER_ID, true)
.set(AnchorLinkExtension.ANCHORLINKS_WRAP_TEXT, true)
.set(HtmlRenderer.HEADER_ID_GENERATOR_RESOLVE_DUPES, true)
.set(AnchorLinkExtension.ANCHORLINKS_SET_ID, false)
.set(AnchorLinkExtension.ANCHORLINKS_ANCHOR_CLASS, "header_no_underline");

// Prepare head and javascript calls
Expand Down

0 comments on commit 5bde6f7

Please sign in to comment.