Replies: 1 comment 1 reply
|
Hey @benrbray 👋 That is also how |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Overview
remark-citepackage with arehype-citeplugin for generating HTMLremark-mathandrehype-katexas a reference for how to accomplish thisremark-mathplugin passes themathHtmlextension to unifiedDetails
I know that
rehype-katexworks by looking formath-inlineandmath-displayelements in thehasttree:https://github.com/remarkjs/remark-math/blob/dd3075a597d243671bf2bbb46400e3e0f3577078/packages/rehype-katex/lib/index.js#L47-L56
The
math-inlineandmath-displayclasses are assigned by themathHtmlplugin exported bymicromark-extension-math:https://github.com/micromark/micromark-extension-math/blob/6fd7df3338fee9a2490cd32bee54d71c0af48581/dev/lib/html.js#L33-L46
If we have a processor defined as follows:
The
hasttree will contain amath-inlinenode:However, the
remark-mathrepository does not include any reference to themathHtmlplugin exported bymicromark-extension-math.https://github.com/search?q=repo%3Aremarkjs%2Fremark-math%20mathHtml&type=code
(see github search results above -- but also dug through the code manually)
Questions
remark-mathknow how to generate HTML for math nodes ifmathHtmlis never imported?Thank You!
All reactions