mjbvz / vscode-github-markdown-preview-style

VS Code extension that changes the built-in markdown preview to match Github's styling
https://marketplace.visualstudio.com/items?itemName=bierner.markdown-preview-github-styles
MIT License
301 stars 57 forks source link

No support for indented reference links #107

Closed Santeenee closed 1 year ago

Santeenee commented 1 year ago

When inserting reference links in indented string the preview doesn't show the actual link but just "[link]", which isn't clickable:

Example:


This is a clickable [link].

This \[link\] should be clickable.

[link]: https://example.com

jjspace commented 1 year ago

This appears to be working as expected. Markdown as a format doesn't really support "indented" text. Text that is indented 4 spaces turns into an indented code block which will always be shown as plain text so code doesn't get mangled. You can see this in your example. On top of that for a link to be recognized as a link you shouldn't escape (\) the brackets. You can read up on the full syntax for reference links here

If you still think this is behaving incorrectly can you provide a full example of markdown and a picture of the expected outcome that you're seeing elsewhere?

Also the point of the plugin is to mimic the behavior of Github so if it doesn't work here I wouldn't expect it to work in VSCode

mjbvz commented 1 year ago

Closing as this sounds like it is by-design