Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some characters in the address linked from TOC are deleted and the link cannot be made. #705

Closed
TsNeko opened this issue May 29, 2020 · 2 comments
Labels
Needs More Info Needs Tag fix Does not meet label requirements.

Comments

@TsNeko
Copy link

TsNeko commented May 29, 2020

What is the problem?

Some characters in TOC linking addresses have been removed so that it is no longer possible to link to a chapter from the TOC in the preview.

How can I reproduce it?

example of .md file

<!-- TOC depthFrom:1 depthTo:3 -->

- [1・2](#12)
 
<!-- /TOC -->

# 1・2

Presumably, #12 is bad and #1・2 is right.
The unicode of ・ is U+30FB.

@yzhang-gh
Copy link
Owner

Actually on GitHub, the anchor is #12. Are you using Markdown somewhere else?

image

BTW, it looks like you are also using another TOC extension. (This extension doesn't add/recognize comments like <!-- TOC ... -->, /TOC.)

@TsNeko
Copy link
Author

TsNeko commented May 29, 2020

I solved this problem by matching the Markdown All in One setting to the Markdown preview feature built into the vscode.

image01

Markdown All in One 3.0.0 recognizes <!-- TOC ... -->.
I don't have Markdown TOC (AlanWalk) installed.

Also, <!-- TOC ... --> in another .md file didn't recognized, so I installed Markdown TOC (AlanWalk).
To set slugifyMode to vscode works correctly.

@TsNeko TsNeko closed this as completed May 29, 2020
@Lemmingh Lemmingh added the Needs Tag fix Does not meet label requirements. label Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs More Info Needs Tag fix Does not meet label requirements.
Projects
None yet
Development

No branches or pull requests

3 participants