-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix/omml linebreak #87
Conversation
Html2Doc.new(filename: "test", asciimathdelims: ["{{", "}}"]) | ||
.process(html_input("<div><math xmlns='http://www.w3.org/1998/Math/MathML' displaystyle='true'> | ||
<mstyle displaystyle='true'> | ||
<mi>x</mi><mo>=</mo><mo linebreak='newline'/><mi>y</mi> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [87/80]
=end | ||
it "processes linebreaks in MathML mtext" do | ||
Html2Doc.new(filename: "test", asciimathdelims: ["{{", "}}"]) | ||
.process(html_input("<div><math xmlns='http://www.w3.org/1998/Math/MathML' displaystyle='true'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [101/80]
end | ||
math_only_para?(alignnode) and return nil | ||
ooxml.name == "oMathPara" and | ||
ooxml = ooxml.elements.select { |x| %w(oMath r).include?(x.name) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid immutable Array literals in loops. It is better to extract it into a local variable or a constant.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #87 +/- ##
==========================================
- Coverage 95.18% 95.17% -0.01%
==========================================
Files 7 7
Lines 540 539 -1
==========================================
- Hits 514 513 -1
Misses 26 26 ☔ View full report in Codecov by Sentry. |
Metanorma PR checklist