Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gems and drop support for Ruby versions < 3.1 #1810

Closed
wants to merge 25 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
correct capitalization with commonmarker
  • Loading branch information
kenyonj committed Jun 11, 2024
commit 38751607d85c32ac9c3362097e39541d2a66734b
3 changes: 1 addition & 2 deletions lib/github/markup/markdown.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require "github/markup/implementation"
require "commonmarker"

module GitHub
module Markup
Expand All @@ -8,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.render_html(content, commonmarker_opts, commonmarker_exts)
Commonmarker.render_html(content, commonmarker_opts, commonmarker_exts)
},
"github/markdown" => proc { |content, options: {}|
GitHub::Markdown.render(content)
Expand Down
Loading