summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/tests/testfiles/lunamark-markdown/blank-before-code-fence.test
blob: 8d42218e090c57eee6bfcfff150f5e9329605b59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
\def\markdownOptionFencedCode{true}
\def\markdownOptionBlankBeforeCodeFence{true}
<<<
This test ensures that the Lua `fencedCode` and `blankBeforeCodeFence` options
correctly propagate through the plain TeX interface.

The following fenced code block should resolve to a code span.

foo
``` foo
bar
```

foo
~~~ foo
bar
~~~

The following fenced code blocks should be recognized as such.

foo

``` foo
bar
```

foo

~~~ foo
bar
~~~
>>>
codeSpan: fencedCode
codeSpan: blankBeforeCodeFence
interblockSeparator
interblockSeparator
codeSpan: foo bar 
interblockSeparator
tilde
tilde
tilde
tilde
tilde
tilde
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