Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support math formulas #164

Closed
juancarlosfarah opened this issue Aug 13, 2019 · 1 comment · Fixed by #169
Closed

support math formulas #164

juancarlosfarah opened this issue Aug 13, 2019 · 1 comment · Fixed by #169
Assignees
Labels
feature New feature or request

Comments

@juancarlosfarah
Copy link
Member

Support mathematical equations like the following:

    \begin{matrix}
    1 & x & x^2 \\
    1 & y & y^2 \\
    1 & z & z^2 \\
    \end{matrix}

A \[ indicates the beginning of a block, while a \] indicates its end.

A \( indicates the beginning of an inline expression, while a \) indicates its end.

@juancarlosfarah juancarlosfarah added the feature New feature or request label Aug 13, 2019
@juancarlosfarah juancarlosfarah self-assigned this Aug 13, 2019
@juancarlosfarah juancarlosfarah changed the title support mathjax support math formulas Aug 13, 2019
@juancarlosfarah
Copy link
Member Author

We are going to go with Katex, which basically supports all of the things we need. This allows us to avoid MathJax craziness when working without their CDN.

Basically we will detect \[ and \( and we will parse the content inside using Katex. We will then render it inside a Quill div as readonly. This is a very flexible solution that will allow us to write math in the future too.

Tagging @ahgentil for awareness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant