Index: lib/src/prism/tests/languages/markdown/url-reference_feature.test |
diff --git a/lib/src/prism/tests/languages/markdown/url-reference_feature.test b/lib/src/prism/tests/languages/markdown/url-reference_feature.test |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4dc25bafded554ad19ce8180d1184e2e95d37f16 |
--- /dev/null |
+++ b/lib/src/prism/tests/languages/markdown/url-reference_feature.test |
@@ -0,0 +1,56 @@ |
+[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. |