diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/eu/mulk/mulkcms2/common/markdown/MarkdownConverter.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/common/markdown/MarkdownConverter.java b/src/main/java/eu/mulk/mulkcms2/common/markdown/MarkdownConverter.java index 0200514..75f6c8d 100644 --- a/src/main/java/eu/mulk/mulkcms2/common/markdown/MarkdownConverter.java +++ b/src/main/java/eu/mulk/mulkcms2/common/markdown/MarkdownConverter.java @@ -3,6 +3,7 @@ package eu.mulk.mulkcms2.common.markdown; import com.vladsch.flexmark.ext.abbreviation.AbbreviationExtension; import com.vladsch.flexmark.ext.autolink.AutolinkExtension; import com.vladsch.flexmark.ext.definition.DefinitionExtension; +import com.vladsch.flexmark.ext.footnotes.FootnoteExtension; import com.vladsch.flexmark.ext.gfm.strikethrough.StrikethroughExtension; import com.vladsch.flexmark.ext.tables.TablesExtension; import com.vladsch.flexmark.ext.typographic.TypographicExtension; @@ -30,12 +31,14 @@ public class MarkdownConverter { AbbreviationExtension.create(), AutolinkExtension.create(), DefinitionExtension.create(), - TypographicExtension.create())); + TypographicExtension.create(), + FootnoteExtension.create())); options.set(Parser.FENCED_CODE_BLOCK_PARSER, true); options.set(HtmlRenderer.SOFT_BREAK, "\n"); options.set(HtmlRenderer.HARD_BREAK, "<br />\n"); options.set(TypographicExtension.ENABLE_SMARTS, true); options.set(TypographicExtension.ENABLE_QUOTES, true); + options.set(FootnoteExtension.FOOTNOTE_BACK_REF_STRING, ""); this.parser = Parser.builder(options).build(); this.renderer = HtmlRenderer.builder(options).build(); |