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

Add remark-mdx-math-enhanced to list of plugins #2028

Merged
merged 6 commits into from May 6, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/docs/extending-mdx.server.mdx
Expand Up @@ -76,6 +76,8 @@ See also the [list of remark plugins][remark-plugins] and
— change image sources to JavaScript imports
* [`remcohaszing/remark-mdx-frontmatter`](https://github.com/remcohaszing/remark-mdx-frontmatter)
— change frontmatter (YAML) metadata to exports
* [`goodproblems/remark-mdx-math-enhanced`](https://github.com/goodproblems/remark-mdx-math-enhanced)
— Enhance math envs by adding support for embedded JS expressions with full access to props, exports, etc
mattvague marked this conversation as resolved.
Show resolved Hide resolved

{/*
please use alpha sorting on **project** name!
Expand Down
4 changes: 4 additions & 0 deletions docs/guides/math.server.mdx
Expand Up @@ -79,6 +79,10 @@ async function main() {
```
</Note>

<Note>
mattvague marked this conversation as resolved.
Show resolved Hide resolved
**Note:** If you have a use case that requires dynamic JS expressions inside of math environments (e.g. accessing props, making calculations, etc) you may want to check out [remark-mdx-math-enhanced](https://github.com/goodproblems/remark-mdx-math-enhanced)
mattvague marked this conversation as resolved.
Show resolved Hide resolved
</Note>

[commonmark]: https://spec.commonmark.org/current/

[remark-math]: https://github.com/remarkjs/remark-math/tree/main/packages/remark-math
Expand Down