From 321d1def3df3b590f4f07e461b7587e834ad2d25 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sun, 30 Jun 2024 21:41:18 +0200 Subject: [PATCH] Disable footnote backlinks in Markdown These backlinks don't work reliably and are thus more harmful than useful. --- app/helpers/application_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 37c13ff88..2986dcdb8 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -50,7 +50,8 @@ def render_markdown(markdown) markdown, input: 'GFM', hard_wrap: false, - smart_quotes: 'apos,apos,quot,quot' + smart_quotes: 'apos,apos,quot,quot', + footnote_backlink: nil ).to_html.strip end