Skip to content

Can't support mathematical formula  #208

Closed

Description

@JohnJyong

Steps to reproduce the problem (provide example Markdown if applicable):

$x+y=z$ or  $$x+y=z$$

Expected behavior:

such as <span class="katex-display"></span>

Actual behavior:

<p>$$x+y=z$$</p>

(Also see what the reference implementation does: https://spec.commonmark.org/dingus/)

Activity

  1. JohnJyong commented on Jul 12, 2021

    @JohnJyong
    Author

    The markdown to html should render like the picture below.
    image
    Many thanks

  2. robinst commented on Jul 19, 2021

    @robinst
    Collaborator

    This is not a bug. Maths rendering is not part of CommonMark. So it's an additional extension that would be needed (depending on how it's done).

    Note that if you're rendering it as HTML and can add some JS, you can already do it, see #194 (comment)

    (Also linking some general discussion about syntax here: https://talk.commonmark.org/t/mathjax-extension-for-latex-equations/698/8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions