numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
197 stars 118 forks source link

AsciiMath support #1057

Open GrimPixel opened 7 months ago

GrimPixel commented 7 months ago

AsciiMath is easier to type than LaTeX. http://asciimath.org/

christianp commented 7 months ago

Are you asking to write AsciiMath in content areas such as the question statement or part prompts?

This would be possible, but we'd have to choose a set of delimiters for AsciiMath. I don't know what would be safe to use with the thousands of existing questions.

To implement this, I think we'd just need to come up with an AsciiMath equivalent of the \var and \simplify LaTeX commands.

GrimPixel commented 7 months ago

On the website, it says to use `. There is an implementation for Markdown preview on VSCode/VSCodium: https://github.com/zmx0142857/vscode-markdown-asciimath

AsciiDoc has a different approach: https://docs.asciidoctor.org/asciidoc/latest/stem/

christianp commented 7 months ago

I don't think it would be safe to use `. That could easily conflict with something else. I'm not sure AsciiDoc's stem:[...] syntax would work unambiguously, either.