Skip to content

Commit 6a68ea4

Browse files
committed
Upgrade to commonmarker v2
1 parent 2a3c351 commit 6a68ea4

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ gem "sitepress-rails" # Static site generator for Rails [https://sitepress.cc/ge
4343
gem "phlex", "2.0.0.rc1" # An object-oriented view layer. [https://github.com/phlex-ruby/phlex]
4444
gem "phlex-rails", "2.0.0.rc1" # Rails integration for Phlex [https://github.com/phlex-ruby/phlex-rails]
4545

46-
gem "commonmarker", "< 2", require: false
46+
gem "commonmarker", require: false
4747
gem "invisible_captcha" # Unobtrusive and flexible spam protection for Rails apps [https://github.com/markets/invisible_captcha]
4848
gem "color_conversion" # A ruby gem to perform color conversions [https://github.com/devrieda/color_conversion]
4949
gem "meta-tags" # Search Engine Optimization (SEO) for Ruby on Rails applications. [https://github.com/kpumuk/meta-tags]

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ GEM
144144
code_analyzer (0.5.5)
145145
sexp_processor
146146
color_conversion (0.1.2)
147-
commonmarker (1.1.5-arm64-darwin)
148-
commonmarker (1.1.5-x86_64-linux)
147+
commonmarker (2.0.1-arm64-darwin)
148+
commonmarker (2.0.1-x86_64-linux)
149149
concurrent-ruby (1.3.4)
150150
connection_pool (2.4.1)
151151
crack (1.0.0)
@@ -631,7 +631,7 @@ DEPENDENCIES
631631
bundle-audit
632632
capybara
633633
color_conversion
634-
commonmarker (< 2)
634+
commonmarker
635635
css_parser
636636
cuprite
637637
debug

app/views/components/markdown/base.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ def visit(node)
9191
html_inline(node.to_html(options: @options))
9292
in :strikethrough
9393
s { visit_children(node) }
94+
in :escaped
95+
visit_children(node)
9496
end
9597
end
9698

0 commit comments

Comments
 (0)