From ab9101024cbcfb6db40b414c51fe66444dd2138a Mon Sep 17 00:00:00 2001 From: Matt Vague Date: Wed, 4 May 2022 11:42:41 -0700 Subject: [PATCH 1/6] Update math.server.mdx --- docs/guides/math.server.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guides/math.server.mdx b/docs/guides/math.server.mdx index c6f185f18..0941308ea 100644 --- a/docs/guides/math.server.mdx +++ b/docs/guides/math.server.mdx @@ -79,6 +79,10 @@ async function main() { ``` + + **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) + + [commonmark]: https://spec.commonmark.org/current/ [remark-math]: https://github.com/remarkjs/remark-math/tree/main/packages/remark-math From 5d30270a26279f82e04e763eaeacdfba49aa0bfa Mon Sep 17 00:00:00 2001 From: Matt Vague Date: Wed, 4 May 2022 11:46:04 -0700 Subject: [PATCH 2/6] Update extending-mdx.server.mdx --- docs/docs/extending-mdx.server.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/docs/extending-mdx.server.mdx b/docs/docs/extending-mdx.server.mdx index f76f0bed1..77c4afd82 100644 --- a/docs/docs/extending-mdx.server.mdx +++ b/docs/docs/extending-mdx.server.mdx @@ -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 environments by allowing dynamic JS expressions {/* please use alpha sorting on **project** name! From 75c7b19fa4dd03cd79589689e4fb22b0d474356d Mon Sep 17 00:00:00 2001 From: Matt Vague Date: Wed, 4 May 2022 11:48:10 -0700 Subject: [PATCH 3/6] Update extending-mdx.server.mdx --- docs/docs/extending-mdx.server.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/extending-mdx.server.mdx b/docs/docs/extending-mdx.server.mdx index 77c4afd82..43d44aeeb 100644 --- a/docs/docs/extending-mdx.server.mdx +++ b/docs/docs/extending-mdx.server.mdx @@ -77,7 +77,7 @@ See also the [list of remark plugins][remark-plugins] and * [`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 environments by allowing dynamic JS expressions + — Enhance math envs by adding support for embedded JS expressions with full access to props, exports, etc {/* please use alpha sorting on **project** name! From 91a7379d9abd53c7a1d2ab1fcc2938944500d2c7 Mon Sep 17 00:00:00 2001 From: Matt Vague Date: Wed, 4 May 2022 12:03:02 -0700 Subject: [PATCH 4/6] Update docs/guides/math.server.mdx Co-authored-by: Titus --- docs/guides/math.server.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/guides/math.server.mdx b/docs/guides/math.server.mdx index 0941308ea..aa371fc5e 100644 --- a/docs/guides/math.server.mdx +++ b/docs/guides/math.server.mdx @@ -80,7 +80,10 @@ async function main() { - **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) + **Note:** see also + [`remark-mdx-math-enhanced`](https://github.com/goodproblems/remark-mdx-math-enhanced), + which you can use to support JavaScript expressions inside of math (such as to + access props or to make calculations) [commonmark]: https://spec.commonmark.org/current/ From 64d760faf24d8444e740579256d731ecfa88130c Mon Sep 17 00:00:00 2001 From: Matt Vague Date: Wed, 4 May 2022 12:03:08 -0700 Subject: [PATCH 5/6] Update docs/docs/extending-mdx.server.mdx Co-authored-by: Titus --- docs/docs/extending-mdx.server.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/extending-mdx.server.mdx b/docs/docs/extending-mdx.server.mdx index 43d44aeeb..8b17aa4c3 100644 --- a/docs/docs/extending-mdx.server.mdx +++ b/docs/docs/extending-mdx.server.mdx @@ -77,7 +77,7 @@ See also the [list of remark plugins][remark-plugins] and * [`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 + — enhance math with JavaScript inside it {/* please use alpha sorting on **project** name! From ad845c6b9465919330ba67dd15062af50b4e271d Mon Sep 17 00:00:00 2001 From: Matt Vague Date: Wed, 4 May 2022 12:11:27 -0700 Subject: [PATCH 6/6] Update docs/guides/math.server.mdx Co-authored-by: Titus --- docs/guides/math.server.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/math.server.mdx b/docs/guides/math.server.mdx index aa371fc5e..864d4c43f 100644 --- a/docs/guides/math.server.mdx +++ b/docs/guides/math.server.mdx @@ -79,7 +79,7 @@ async function main() { ``` - + **Note:** see also [`remark-mdx-math-enhanced`](https://github.com/goodproblems/remark-mdx-math-enhanced), which you can use to support JavaScript expressions inside of math (such as to