Link with url containing space won't render in markdown #3707
-
Checklist
Package namevuepress-theme-hope Which operating system are you using?
Describe the bug[正常](https://example.ex/test0.html)
[错误](https://example.ex/test 1.html) Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Answered by
Mister-Hope
Dec 5, 2023
Replies: 2 comments
-
在一些markdown渲染器中,例如 Typora 或者 Writeside 中,可以正常渲染 感谢您的回复 |
Beta Was this translation helpful? Give feedback.
0 replies
-
The solution is to use actual URL, Commonmark Spec: https://spec.commonmark.org/ |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mister-Hope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The solution is to use actual URL,
https://example.com/a b.html
is never a valid one, buthttps://example.com/a%20b.html
is.Marakdown-it playground: https://markdown-it.github.io/#md3=%7B%22source%22%3A%22%5Burl%5D%28https%3A%2F%2Fexample.com%2Fa%20b%29%22%2C%22defaults%22%3A%7B%22html%22%3Afalse%2C%22xhtmlOut%22%3Afalse%2C%22breaks%22%3Afalse%2C%22langPrefix%22%3A%22language-%22%2C%22linkify%22%3Atrue%2C%22typographer%22%3Atrue%2C%22_highlight%22%3Atrue%2C%22_strict%22%3Afalse%2C%22_view%22%3A%22html%22%7D%7D
Commonmark Spec: https://spec.commonmark.org/