Inline math with units often fails to render inside blockquotes #8054
Unanswered
lentkt
asked this question in
Error / Bug Report
Replies: 1 comment
|
It's a known issue. There's a fix here: #8000 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
In Wiki.js, when I write inline math inside a blockquote (>), some formulas with units (like D, mm) show up as raw unrendered text in the published page. However, the same formulas work correctly outside blockquotes, or when I add a small change (like a trailing period).
Steps to reproduce
Create a Wiki.js page containing the following blockquote:
Expected result: All six lines should render as mathematical formulas with upright units.
Actual result (published view):
· Lines 1, 2, 5, and 6 are displayed as plain text (e.g.,$(-6.00)+(+0.50)=-5.50\mathrm{D}$ ).
· Lines 3 and 4 render correctly.
Additional observations
· The problem is consistently reproducible inside blockquotes. Outside blockquotes, the same formulas work fine.
· Using \mathrm D (without curly braces) always works, but this is not a natural fix for multi‑letter units like mm.
· Adding a punctuation mark (like . or ,) right after the closing $ also makes it work, but that changes the document content.
Impact
This affects any page that contains technical or medical formulas with units inside blockquotes (e.g., quoting a prescription or test result). The published page becomes unreadable for end users.
Request
Please investigate why inline math inside blockquotes is not properly recognised, especially when it ends right after a command with curly braces ({...}). It would be great if the parser could handle these cases without requiring extra punctuation or special syntax.
All reactions