Support GitHub-flavored Markdown

This commit is contained in:
Sebastian Serth
2023-12-18 21:35:17 +01:00
parent 1c545c8693
commit 4723985b4c
3 changed files with 5 additions and 1 deletions

View File

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