-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
KaTeX Macros With Global Scope #98
Comments
Welcome @fweth! 👋 remark-math/packages/rehype-katex/test.js Lines 131 to 149 in e99b9d0
That feels unexpected.
Embedded documents, are just that, independent documents inside of a host document. It sounds like you want interleaving of different languages, perhaps something like https://mdxjs.com/ or https://jupyter.org/ |
Thanks, this sounds great! Still, KaTeX/MathJax editors like VSCode (with preview), iA Writer, HackMD, etc. support global math contexts. KaTeX docs also say
|
Hi! This was closed. Team: If this was fixed, please add |
Initial checklist
Problem
I like to use KaTex macros, especially where I put all my custom commands in a single math block at the top of the file. This is supported by many KaTeX based editors, including VSCode with it's built in preview. However, I couldn't get this to work with remark:
Here the scope of the definition is its own math block, so it can't be used outside of the block. Would be awesome if there is a way to get this working!
Solution
Abbreviations should be stored in a global context, not scoped to individual math blocks.
Alternatives
I can't think of an alternative solution.
The text was updated successfully, but these errors were encountered: