The Wayback Machine - https://web.archive.org/web/20221119042613/https://github.com/raphlinus/pulldown-cmark/pull/622
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 extension #622

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Support math extension #622

wants to merge 5 commits into from

Conversation

rhysd
Copy link
Contributor

@rhysd rhysd commented Nov 19, 2022

This PR adds support for mathematical expressions which was introduced to GitHub recently as Options::ENABLE_MATH extension.

This extension supports both inline-level and block-level expressions:

Inline-level:  $\sqrt{3x-1}+(1+x)^2$

Block-level:

$$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$$

They are rendered as follows on GitHub:

Inline-level: $\sqrt{3x-1}+(1+x)^2$

Block-level:

$$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant