Vscode-markdown: Invalid auto-generated links to headers with LaTeX

Created on 22 Jun 2020  路  4Comments  路  Source: yzhang-gh/vscode-markdown

What is the problem?

Invalid auto-generated links to headers with some LaTeX markup.

How can I reproduce it?

The example document below clearly shows the issue.

# Test Document

## Header with some $\LaTeX$

Some content

## Other header without LaTeX

Auto-generated links:

- a link [to a header with some $\LaTeX$](#header-with-some-math-xmlnshttpwwww3org1998mathmathmlsemanticsmrowmtextlatexmtextmrowannotation-encodingapplicationx-texlatexannotationsemanticsmathlatex)
- a link [to a header without LaTeX](#other-header-without-latex)

As you can see the auto-generated link to the header with some LaTeX in it is not valid (does not work after clicking on it).\
Instead of #header-with-some-math-xmlnshttpwwww3org1998mathmathmlsemanticsmrowmtextlatexmtextmrowannotation-encodingapplicationx-texlatexannotationsemanticsmathlatex the expected value should be #header-with-some-latex.

This issue also appears when a ToC for the document is generated.

Is there any error message in the console?

There isn't.

table of contents Bug Fixed

All 4 comments

Thanks for the feedback. It should be fixed in the dev build.

@yzhang-gh
Unfortunately, the build failed so I can't download the _Latest Development Build_.

Should be good now 馃槄.

No problem, thanks for the effort! :)

Was this page helpful?
0 / 5 - 0 ratings