Skip to content

Commit

Permalink
Upgrade to commonmarker v2
Browse files Browse the repository at this point in the history
  • Loading branch information
rossta committed Dec 8, 2024
1 parent 2a3c351 commit 6a68ea4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ gem "sitepress-rails" # Static site generator for Rails [https://sitepress.cc/ge
gem "phlex", "2.0.0.rc1" # An object-oriented view layer. [https://github.com/phlex-ruby/phlex]
gem "phlex-rails", "2.0.0.rc1" # Rails integration for Phlex [https://github.com/phlex-ruby/phlex-rails]

gem "commonmarker", "< 2", require: false
gem "commonmarker", require: false
gem "invisible_captcha" # Unobtrusive and flexible spam protection for Rails apps [https://github.com/markets/invisible_captcha]
gem "color_conversion" # A ruby gem to perform color conversions [https://github.com/devrieda/color_conversion]
gem "meta-tags" # Search Engine Optimization (SEO) for Ruby on Rails applications. [https://github.com/kpumuk/meta-tags]
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ GEM
code_analyzer (0.5.5)
sexp_processor
color_conversion (0.1.2)
commonmarker (1.1.5-arm64-darwin)
commonmarker (1.1.5-x86_64-linux)
commonmarker (2.0.1-arm64-darwin)
commonmarker (2.0.1-x86_64-linux)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
crack (1.0.0)
Expand Down Expand Up @@ -631,7 +631,7 @@ DEPENDENCIES
bundle-audit
capybara
color_conversion
commonmarker (< 2)
commonmarker
css_parser
cuprite
debug
Expand Down
2 changes: 2 additions & 0 deletions app/views/components/markdown/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def visit(node)
html_inline(node.to_html(options: @options))
in :strikethrough
s { visit_children(node) }
in :escaped
visit_children(node)
end
end

Expand Down

0 comments on commit 6a68ea4

Please sign in to comment.