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
If you read the source code of this plugin, you will find that it only receive tex option and svg option. So the answer is simply that the startup option is not supported so far.
functionplugin(md: MarkdownIt,options: any){// Default optionsconstdocumentOptions={InputJax: newTeX({packages: AllPackages, ...options?.tex}),OutputJax: newSVG({fontCache: 'none', ...options?.svg})}constconvertOptions={display: false}// set MathJax as the renderer for markdown-it-simplemathmd.inline.ruler.after("escape","math_inline",math_inline);md.block.ruler.after("blockquote","math_block",math_block,{alt: ["paragraph","reference","blockquote","list"],});md.renderer.rules.math_inline=function(tokens: Token[],idx: number){convertOptions.display=false;returnrenderMath(tokens[idx].content,documentOptions,convertOptions)};md.renderer.rules.math_block=function(tokens: Token[],idx: number){convertOptions.display=true;returnrenderMath(tokens[idx].content,documentOptions,convertOptions)};};
Sorry I am not very familiar with web development. I want to configure MathJax following the official document like the following example
However, it requires to access MathJax within the configure. I tried the following code
But it does not seem to work. Thanks!
The text was updated successfully, but these errors were encountered: