learningequality / studio

Content curation tools for Kolibri
https://studio.learningequality.org/
MIT License
113 stars 163 forks source link

Exercises editor does not allow raw KaTeX #3448

Open rtibbles opened 2 years ago

rtibbles commented 2 years ago

Users attempting to write mathematical and scientific symbols have issues as the editor appears to remove extra \ from their input that prevents it being properly rendered.

Attempt to input:

$\\text {Li}_2 \\text SO_4$

And one of the escaping \ will be removed, causing it to be rendered literally in Kolibri.

In addition, while it is possible to make them correctly render in Studio - correctly rendering in Studio is not an accurate indication of them rendering properly in Kolibri.

https://community.learningequality.org/t/issues-with-latex-subscripts/2424/3

MisRob commented 2 years ago

We decided not to work on any kind of "manual" input during the Vue refactor, so may make more sense to consider this as a whole (together with the problem of Kolibri vs Studio rendering discrepancy) rather than one particular issue since the editor is not currently built for such use cases in general. Could be also related to allowing writing exercises in markdown.

Mbd06b commented 3 months ago

Maybe related, I am looking to render preformatted html, javascript, and other code in order to build multiple choice questions discussing code. I don't want to reinvent the wheel here with full custom html5 app module, and would prefer supporting the built-in question editor in studio.

Is this even possible?