Disable footnote backlinks in Markdown

These backlinks don't work reliably and are thus more harmful than useful.
This commit is contained in:
Sebastian Serth
2024-06-30 21:40:51 +02:00
committed by Dominic Sauer
parent 21576d0b23
commit 996d4674e0

View File

@ -50,7 +50,13 @@ module ApplicationHelper
end
def render_markdown(markdown)
ActionController::Base.helpers.sanitize Kramdown::Document.new(markdown, input: 'GFM', hard_wrap: false, smart_quotes: 'apos,apos,quot,quot').to_html.strip
ActionController::Base.helpers.sanitize Kramdown::Document.new(
markdown,
input: 'GFM',
hard_wrap: false,
smart_quotes: 'apos,apos,quot,quot',
footnote_backlink: nil
).to_html.strip
end
def row(options = {}, &block)