diff --git a/Gemfile b/Gemfile index 58f6ce6c..6801eb2c 100644 --- a/Gemfile +++ b/Gemfile @@ -6,7 +6,7 @@ gem "posix-spawn", :platforms => :ruby gem "redcarpet", :platforms => :ruby gem "kramdown", :platforms => :jruby gem "RedCloth" -gem "commonmarker", "~> 1.0.4" +gem "commonmarker", "~> 0.23.10" gem 'rdoc', '~> 6.6', '>= 6.6.2' gem 'org-ruby', '~> 0.9.12' gem 'creole', '~> 0.5.0' diff --git a/lib/github/markup/markdown.rb b/lib/github/markup/markdown.rb index 712e86ac..dcf93229 100644 --- a/lib/github/markup/markdown.rb +++ b/lib/github/markup/markdown.rb @@ -7,7 +7,7 @@ class Markdown < Implementation "commonmarker" => proc { |content, options: {}| commonmarker_opts = [:GITHUB_PRE_LANG].concat(options.fetch(:commonmarker_opts, [])) commonmarker_exts = options.fetch(:commonmarker_exts, [:tagfilter, :autolink, :table, :strikethrough]) - Commonmarker.to_html(content, commonmarker_opts, commonmarker_exts) + CommonMarker.render_html(content, commonmarker_opts, commonmarker_exts) }, "github/markdown" => proc { |content, options: {}| GitHub::Markdown.render(content)