learningequality / learningequality/studio

Exercises editor does not allow raw KaTeX

Open
#3,448 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

TODO: needs decisions
Dominant language
Python
Stars
191
Forks
307
Avg merge
5d 6h
Merged PRs (30d)
10

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by reproducing the supplied KaTeX input in the exercises editor, then compare its Studio and Kolibri rendering. Done means escaped backslashes are preserved and the example renders correctly in Kolibri.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.