PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
267 stars 209 forks source link

MathJax menu unavailable inside born hidden knowls #2062

Open Alex-Jordan opened 1 year ago

Alex-Jordan commented 1 year ago

Find a born-hidden knowl that has math content. For example the "Answer" knowl to exercise 6 here: Exercise Group https://pretextbook.org/examples/sample-article/html/section-further-reading.html#exercisegroup-5

Open it, and try to right-click on the math. This should reveal the MathJax menu, but it does not. This seems to be an issue for born-hidden knowls, not xref knowls.

Some discussion of this is here.

bnmnetp commented 1 year ago

I believe this is the same issue for many of the runestone components. The even handlers are lost in the copying process when the knowl is made visible.

It would be good to find one universal fix for both.