Skip to content

Commit 10e8f63

Browse files
committed
Commonmarker API change fixes
1 parent baa29ce commit 10e8f63

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/helpers/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def retrieve_title
2020
end
2121

2222
def dot_markdown(text)
23-
CommonMarker.render_html(text, :DEFAULT).html_safe
23+
Commonmarker.to_html(text).html_safe
2424
end
2525

2626
def belongs_to_group?(group)

config/initializers/haml_markdown.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Remove the haml_markdown initaliser. The internals changed so the monkey-patching to implement a custom render method
2-
# no longer works, but is also not necessary since the markdown filter uses CommonMarker anyway.
2+
# no longer works, but is also not necessary since the markdown filter uses Commonmarker anyway.
33

44
# module Haml::Filters
55
# remove_filter("Markdown") #remove the existing Markdown filter
@@ -8,7 +8,7 @@
88
# include Haml::Filters::Base
99

1010
# def render(text)
11-
# CommonMarker.render_html(text, :DEFAULT).html_safe
11+
# Commonmarker.to_html(text).html_safe
1212
# end
1313
# end
1414
# end

0 commit comments

Comments
 (0)