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

Upgrade to commonmarker v2 #310

Merged
merged 1 commit into from
Dec 8, 2024
Merged

Upgrade to commonmarker v2 #310

merged 1 commit into from
Dec 8, 2024

Conversation

rossta
Copy link
Contributor

@rossta rossta commented Dec 8, 2024

No description provided.

@@ -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)
Copy link
Contributor Author

@rossta rossta Dec 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commonmarker v2 adds this node type. In my debugging this node type in the test suite, this node wraps characters like "*" and "_", e.g.:

#<Commonmarker::Node(escaped): source_position={:start_line=>63, :start_column=>87, :end_line=>63, :end_column=>88} children=[#<Commonmarker::Node(text): source_position={:start_line=>63, :start_column=>87, :end_line=>63, :end_column=>88}, string_content="*">]>

Copy link

codecov bot commented Dec 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
app/views/components/markdown/base.rb 100.00% <100.00%> (ø)
app/views/share/polls/results.rb 100.00% <100.00%> (ø)

@rossta rossta force-pushed the chore/commonmarker-v2 branch from 461fe46 to 6a68ea4 Compare December 8, 2024 13:28
@rossta rossta merged commit bfdafe3 into main Dec 8, 2024
11 checks passed
@rossta rossta deleted the chore/commonmarker-v2 branch December 8, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant