iamcco/markdown-preview.nvim

Anchor links containing special characters not being stripped

Open

#191 opened on May 15, 2020

View on GitHub
 (1 comment) (2 reactions) (0 assignees)JavaScript (5,538 stars) (246 forks)batch import
help wanted

Description

When I define a section containing special characters, for example:

## api/path/to/resource/<resource_id>/

The preview doesn't strip the slashes and <>, so the anchor link becomes:

#api%2Fpath%2Fto%2Fresource%2F<resource_id>%2F

But on GitHub the actual anchor link would be:

#apipathtoresourceresource_id

Contributor guide