Disable footnote backlinks in Markdown
These backlinks don't work reliably and are thus more harmful than useful.
This commit is contained in:

committed by
Dominic Sauer

parent
21576d0b23
commit
996d4674e0
@ -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)
|
||||
|
Reference in New Issue
Block a user