vscode-markdown: katex macros not correctly rendered when printing to pdf

What’s the problem

I set costumed katex macros and it works perfectly fine when I preview it in vscode. However when I print that to html it says

 ParseError: KaTeX parse error: Undefined control sequence

What’s the expected result

The html file should be rendered as the same as the preview in vsc

How to reproduce

  1. set some macros
  2. use that in a markdown file
  3. print it into html

Other information

I encountered this issue on both mac and pc

plugin version : v3.5.1 vscode version: 1.78.1 (user setup)

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

image

still works well on my machine.

I checked my settings and guess that might be because you have the VS Code’s built-in math support enabled.

image