Open karlludwinski opened 4 months ago
This is because this extension follows the VS Code's Markdown settings. You need to disable markdown.preview.linkify
.
That does result in a text URL being printed as-is, but if you make it into a link, the same problem occurs. With this in the md file:
[https://www.test.com/%test%.html](https://www.test.com/%test%.html)
and markdown.preview.linkify
set to false
, the output href is still encoded:
<a href="https://www.test.com/%25test%25.html">https://www.test.com/%test%.html</a>
What's the problem
URLs are encoded when printing to HTML.
What's the expected result
URLs should not be encoded and should output identically to the text representation.
How to reproduce
https://www.test.com/%test%.html
Result:
The link is output as:
<a href="https://www.test.com/%25test%25.html">https://www.test.com/%test%.html</a>
where % is encoded as %25 in the href attribute.