Better Markdown support: Built-in LaTeX, syntax highlighting, header IDs, etc
It'd be nice with built-in support for all this: (and maybe simpler to fix these things at the same time)
- CommonMark syntax inline help, see: Inline CommonMark formatting help
- Maths (LaTeX via KaTeX), and preferably disable CommonMark's handling of underscore
_
and backslash\
, so people won't need to write e.g.\int\_fromSomething^toSomething
. (In CommonMark,_
otherwise makes text italic:;_italics_
becomes: italics). - Source code syntax highlighting (Prism.js) (see: How to add Syntax Highlighting). And support many languages (not just one).
- Diagrams (Mermaid)
- Auto generate heading IDs (for deep linking into a doc. See: Headers don't have IDs?)
- Checkboxes:
[ ] do something
- All links to external web pages could optionally open in new tabs — make configurable?
~~Strikethrough~~
, see: Markdown: strikethrough- Box-shadows around
<img>
? See: Add a border to images
It's not so good if (like now) people need to add their own javascript tags to make the above things work. And heading IDs and checkboxes cannot be made to work, in that way, I think.
Linked from:
- TIn reply toKajMagnus⬆:@TheCedarPrince
Hey, would it be possible to add in Maths support sometime soon for commenting on blogs? What is the status of this? Thanks!
- KajMagnus @KajMagnus2023-04-18 04:47:59.324Z
Built-in support: That's probably going to take a while, >= some months. So much to do.
It's possible, though, to do it yourself, until then — if you have a look here: $\LaTeX$ demo (works inside this topic only).
I'm guessing that later on, you'll be able to click a radio button, and choose:
Maths support: (x) None, ( ) MathJax3, ( ) KaTeX
depending on what works best for that forum / blog. — What maths support lib would you prefer b.t.w. (if you have any preferences)?
- Progresswith doing this idea