Skip to content

Question about markdown detection and LaTeX #92

@camoz

Description

@camoz

Markdown seems to be autodetected when adding a note via markdown files, e.g. apy add, but it can interfere with latex syntax.

For very simple latex it's fine I guess, but for more complex latex there is the risk that parts of it get interpreted as markdown and then become unusable. I have a few questions about this:

  • Is there a way (right now) to exclude latex equations from markdown conversion? Perhaps I'm missing something...
  • Would it make sense to modify the markdown detection such that fields get only interpreted as markdown if there is not any latex? I guess this is a minor issue since one can just turn on/off markdown explicitly via markdown: false.
  • How do you personally handle this? Resort to HTML formatting when you have complex latex?

Side note: I think it's a bit unfortunate, albeit understandable, that Anki chose \[\] \(\) over $/$$ delimiters. Because, the $/$$ syntax is quite popular in markdown and is/will be supported by quite a few markdown tools. Btw there is a nice overview at the bottom of https://github.com/cben/mathdown/wiki/math-in-markdown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions