CS-Notes/docs/_style/prism-master/tests/languages/markdown/url-reference_feature.test
2018-12-19 14:09:39 +08:00

56 lines
1.3 KiB
Plaintext

[foo]: http://prismjs.com
[foo]: http://prismjs.com "foo\"bar"
[foo]: http://prismjs.com 'foo\'bar'
![foo]: http://prismjs.com (foo (bar\) baz)
[foo]: <http://prismjs.com> "Prism"
----------------------------------------------------
[
["url-reference", [
["punctuation", "["],
["variable", "foo"],
["punctuation", "]"],
["punctuation", ":"],
" http://prismjs.com"
]],
["url-reference", [
["punctuation", "["],
["variable", "foo"],
["punctuation", "]"],
["punctuation", ":"],
" http://prismjs.com ",
["string", "\"foo\\\"bar\""]
]],
["url-reference", [
["punctuation", "["],
["variable", "foo"],
["punctuation", "]"],
["punctuation", ":"],
" http://prismjs.com ",
["string", "'foo\\'bar'"]
]],
["url-reference", [
["punctuation", "!"],
["punctuation", "["],
["variable", "foo"],
["punctuation", "]"],
["punctuation", ":"],
" http://prismjs.com ",
["string", "(foo (bar\\) baz)"]
]],
["url-reference", [
["punctuation", "["],
["variable", "foo"],
["punctuation", "]"],
["punctuation", ":"],
["punctuation", "<"],
"http://prismjs.com",
["punctuation", ">"],
["string", "\"Prism\""]
]]
]
----------------------------------------------------
Checks for URL references.