Merge pull request #15 from ahorek/markdown

replace markdown with common_mark
This commit is contained in:
Karel Pičman 2025-11-26 08:58:01 +01:00 committed by GitHub
commit cb51cd99f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ module DmsfFilesHelper
def render_document_content(dmsf_file, content) def render_document_content(dmsf_file, content)
if dmsf_file.markdown? if dmsf_file.markdown?
render partial: 'common/markup', locals: { markup_text_formatting: markdown_formatter, markup_text: content } render partial: 'common/markup', locals: { markup_text_formatting: 'common_mark', markup_text: content }
elsif dmsf_file.textile? elsif dmsf_file.textile?
render partial: 'common/markup', locals: { markup_text_formatting: 'textile', markup_text: content } render partial: 'common/markup', locals: { markup_text_formatting: 'textile', markup_text: content }
else else