Index: lib/src/prism/tests/languages/markdown/code_feature.test |
diff --git a/lib/src/prism/tests/languages/markdown/code_feature.test b/lib/src/prism/tests/languages/markdown/code_feature.test |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2696ca72e293027e02cf1137cdf50f92a3e4c690 |
--- /dev/null |
+++ b/lib/src/prism/tests/languages/markdown/code_feature.test |
@@ -0,0 +1,22 @@ |
+`foo bar baz` |
+``foo `bar` baz`` |
+ |
+ foobar |
+ |
+ foobar |
+ |
+---------------------------------------------------- |
+ |
+[ |
+ ["code", "`foo bar baz`"], |
+ ["code", "``foo `bar` baz``"], |
+ ["code", " foobar"], |
+ ["code", "\tfoobar"] |
+] |
+ |
+---------------------------------------------------- |
+ |
+Checks for code blocks and inline code. The first code block is |
+indented with 4 spaces, the second one is indented with 1 tab. |
+The initial dot is necessary because of the first part being trimmed |
+by the test runner. |