Open PaperCube opened 4 years ago
Thank you.
According to the description "unless at least one macro is defined in Settings", I guess we should still pass an empty object {}
when there are no user macros.
To my memory, it causes another issue for users who don't use macros. I am not very sure but someone made some tests if interested.
What is the problem?
\global\def
doesn't persist between math expressions as described in Katex Official Documentation unless at least one macro is defined in Settings.How can I reproduce it?
Delete all entries of
"markdown.extension.katex.macros"
insettings.json
, reload window, then create a markdown file with content as below:\ud
is shown red in the preview panel.Then, add entry in
settings.json
:Reload window, and a roman d is shown in preview panel correctly.
By the way, it seems that defining macros with arguments in
settings.json
isn't supported.Is there any error message in the console?
Seemingly there aren't any error messages related to this plugin in the console.