yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.89k stars 323 forks source link

TOC link fragment unreadable #1200

Open AlWoe opened 1 year ago

AlWoe commented 1 year ago

What's the problem

TOC is now generated with unreadable characters (HTML entity numbers) instead of the characters themselve as it used to be.

What's the expected result

Use the text representation of the link fragments again. Or explain why this was changed (I haven't found an issue in the "Area: Table of contents".).

How to reproduce

- [Test](#%74%65%73%74)

...

## Test
yzhang-gh commented 1 year ago

What toc.slugifyMode are you using? I checked both github and vscode and didn't see your result.

alwo23 commented 1 year ago

I just tried on my other machine and did not have the problem there. I think I had toc.slugifyMode set to azureDevops, but that an the 2 you tried work fine, too. But than I saw that an update (from v3.4.3 to 3.5.0) was waiting and after the update I now have the problem on this machine, too.

yzhang-gh commented 1 year ago

That's strange. I have also updated my extension to v3.5.0 and restarted VS Code several times. But still cannot reproduce this problem.

image

AlWoe commented 1 year ago

Now I'm going through some old files and I get arbitrary results: some stay readable, some change, ... I've looked at the encoding of the files, but they are all UTF-8, so that's seems to be irrelevant. I will keep trying to figure out what causes this erratic behavior (on my machines!?)...

Thanks for your quick responses and experiments!