Closed sandersantema closed 3 years ago
You need to add a backEllipser
to the jaxcOptions
, like so:
const jaxcOptions = {
...
backEllipser: (tag) => [tag.values[0]],
...
}
This is because Closet now emits semantic HTML, and MathJax doesn't know how to resolve that HTML.
Thank you very much for the quick answer, is this documented anywhere or is the best solution just reading trough the code for now?
I'm afraid the extending capabilities are terribly documented right now. If you struggle with setting up something, you should read the code, or just approach me :)
Documentation is certainly on the horizon. But I will probably start with more user documentation, rather than developer documentation.
I see, good to know documentation is on the horizon. I think more (well at least of minimum quality that is :wink:) documentation is always a good thing whichever kind it is. And I suppose reading the code would be a good way to learn some more typescript.
I do however wonder who exactly are the intended users of Closet or who you might envision as the intended users. Given that closet requires at least some basic scripting I suppose it might be a crowd of somewhat more developer orientated people who might benefit more from developer documentation. Which in turn might enable more of these "developer orientated" people to create Closet scripts which people who are less interested in scripting closet can simply copy and paste. But that really depends on who is currently using Closet or who you intend to.
I do however wonder who exactly are the intended users of Closet
I see two groups:
Right now, Closet is basically exclusively reserved for the first group. My current plan is to wait for the next Ankidroid release, which will have Closet support, and then publish a powerful notetype with features like Image occlusion + Incremental reveal clozes and make a video-tutorial and get some more attention that way.
However I would expect them to use it in a different way, then the current "developer"-type users. I already made Closet work without Asset Manager installed, so the idea would be to only distritbute the note type and tell the people to install Closet add-on additionally, so the cognitive load is not that high.
TLDR; I try to cater to both groups, however I only have so much time :)
Describe the bug Card:
\([[jaxc1::x]]\)
Front: Back:Previously I the following worked when using closet clozes inside of mathjax formula's:
Having ported this to the new code the following doesn't work anymore:
Debug information To help you debug, I need some information. I have two suggestions for you to help me. It would be best, if you did both, as that way I can help you the quickest.
Method 1 (preferred method)
(remove zip file extension) debug.apkg.zip
Method 2
No errors: