fix kramdown using curved quotes and replace them with straight quotation marks

This commit is contained in:
Karol
2024-03-12 23:48:05 +01:00
committed by Sebastian Serth
parent 3ce46b418e
commit 117d3366ad
3 changed files with 3 additions and 3 deletions

View File

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