\tag{...} in $$ math blocks renders as a one-character-wide vertical column
#212507
Replies: 2 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
Thanks for the clear report — I can reproduce it, and a few extra observations may help:
Your report made me curious, so I tried a workaround. I'm a student in mathematics, new to GitHub but using LaTeX every day, and I wanted proper numbered equations in my READMEs. Equations are written in ordinary I used your equation as the first example (with credit to you and a link to this discussion): https://github.com/fcappellesso/latex-equations-on-github I know this does not fix the bug itself: the equations are images, not copyable LaTeX, and references in the surrounding text are still typed by hand. It is only a temporary option for anyone who needs to display numbered equations correctly right now. I'm also looking forward to a real fix on GitHub's side. Thank you for reporting it! |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Other
Body
Summary
A display equation containing
\tag{...}is squeezed into a vertical strip about one character wide in Chromium-based browsers and Firefox. Removing\tagfixes it.Reproduction
Broken (
\tagused):Source:
Expected: the equation renders normally with the label (2.1) on the right, as in LaTeX/MathJax.
Actual: the equation is crushed into a narrow vertical column and is unreadable.
Likely cause: the generated MathML for
\tagappears to use<mlabeledtr>, which MathML Core removed, so browsers with native MathML don't lay it out as a table row.Workaround: end the equation with
\qquad\text{(2.1)}instead of\tag{2.1}:Possibly related: github/markup#1584 mentions
\tagformatting problems in long formulas.All reactions