MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

braketbar=true in output

Open pkra opened this issue 3 years ago • 4 comments

Issue Summary

The custom attribute used in

https://github.com/mathjax/MathJax-src/blob/develop/ts/input/tex/braket/BraketMethods.ts#L85

appears in SVG and HTML output, creating invalid markup.

Steps to Reproduce:

  • Visit https://www.mathjax.org/#demo
  • Paste $\set{c_{i,j}| i \in I, j \in J}$
  • check DOM to find | output having braketbar="true"

pkra avatar Jun 20 '22 10:06 pkra

It looks like that should probably be a data-* attribute.

dpvc avatar Jun 23 '22 13:06 dpvc

Slightest of pings on this one (now that v4 is in alpha).

I'd make a PR to make the trivial change but I couldn't work out where this attribute is actually used (I had assumed it's for SRE but don't see it there either).

pkra avatar Dec 07 '22 13:12 pkra

It's on the list of things to do (the v4.0 milestone, and assigned to me so I will be sure to see it).

dpvc avatar Dec 07 '22 16:12 dpvc

I've made the change as part of mathjax/MathJax-src#906, which was updating the braket package in other ways. While MathJax doesn't use this attribute, I suspect SRE uses it somewhere, so @zorkow may need to do something in SRE to accommodate the change.

dpvc avatar Feb 21 '23 19:02 dpvc