You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am migrating from vuepress-hope-theme v2.0.0-rc.52 to v2.0.0-rc.56, which involves migrating from the hope theme's markdown math plugin to the official one here. The hope theme happened to set a handful of macros by default, and this enabled global definitions; switching to the official markdown math plugin broke this and it was pretty difficult to debug.
The text was updated successfully, but these errors were encountered:
Clear and concise description of the problem
By default, KaTeX's
\gdef
feature (which creates a definition that persists across math blocks) does not work.Suggested solution
The plugin should set the option
macros: {}
by default, and then override it from the katex config. This happens here:ecosystem/plugins/markdown/plugin-markdown-math/src/node/markdownMathPlugin.ts
Line 108 in f976a5c
Alternative
No response
Additional context
I am migrating from vuepress-hope-theme v2.0.0-rc.52 to v2.0.0-rc.56, which involves migrating from the hope theme's markdown math plugin to the official one here. The hope theme happened to set a handful of macros by default, and this enabled global definitions; switching to the official markdown math plugin broke this and it was pretty difficult to debug.
The text was updated successfully, but these errors were encountered: