No internet connection
  1. Home
  2. Ideas

Better Markdown support: Built-in LaTeX, syntax highlighting, header IDs, etc

By KajMagnus @KajMagnus2022-02-04 13:44:21.542Z2022-05-19 15:34:46.702Z

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.

  • 2 replies
  1. T
    In reply toKajMagnus:
    @TheCedarPrince
      2023-04-15 23:28:21.563Z

      Hey, would it be possible to add in Maths support sometime soon for commenting on blogs? What is the status of this? Thanks!

      1. 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)?

      2. Progress
        with doing this idea
      3. @KajMagnus marked this topic as Planned 2022-02-04 13:44:42.938Z.