summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-blank-before-code-fence.test
diff options
context:
space:
mode:
Diffstat (limited to 'macros/generic/markdown/tests/testfiles/lunamark-markdown/no-blank-before-code-fence.test')
-rw-r--r--macros/generic/markdown/tests/testfiles/lunamark-markdown/no-blank-before-code-fence.test57
1 files changed, 57 insertions, 0 deletions
diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-blank-before-code-fence.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-blank-before-code-fence.test
new file mode 100644
index 0000000000..fbe81311a3
--- /dev/null
+++ b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-blank-before-code-fence.test
@@ -0,0 +1,57 @@
+\def\markdownOptionFencedCode{true}
+<<<
+This test ensures that the Lua `fencedCode` option correctly propagates through
+the plain TeX interface and that the Lua `blankBeforeCodeFence` option is
+disabled by default.
+
+The following fenced code blocks should be recognized as such.
+
+foo
+``` foo
+bar
+```
+
+foo
+~~~ foo
+bar
+~~~
+
+foo
+
+``` foo
+bar
+```
+
+foo
+
+~~~ foo
+bar
+~~~
+>>>
+codeSpan: fencedCode
+codeSpan: blankBeforeCodeFence
+interblockSeparator
+interblockSeparator
+interblockSeparator
+BEGIN fencedCode
+- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim
+- infostring: foo
+END fencedCode
+interblockSeparator
+interblockSeparator
+BEGIN fencedCode
+- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim
+- infostring: foo
+END fencedCode
+interblockSeparator
+interblockSeparator
+BEGIN fencedCode
+- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim
+- infostring: foo
+END fencedCode
+interblockSeparator
+interblockSeparator
+BEGIN fencedCode
+- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim
+- infostring: foo
+END fencedCode