aboutsummaryrefslogtreecommitdiff
path: root/test/command/4811.md
blob: 33d49f8c866e70e81c7d6a1ec3de4bf8648575ab (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
58
No blank lines in inline interpreted roles:

```
% pandoc -f rst -t native
`no

blank`:myrole:
^D
[ Para [ Str "`no" ], Para [ Str "blank`:myrole:" ] ]
```

Backslash escape behaves properly in interpreted roles:

```
% pandoc -f rst -t native
`hi\ there`:sup:

`hi\ there`:code:
^D
[ Para
  [ Superscript [ Str "hithere" ] ]
, Para
  [ Code ( "", [], [] ) "hi\\ there" ]
]
```

Backtick followed by alphanumeric doesn't end the span:
```
% pandoc -f rst -t native
`hi`there`:myrole:
^D
[ Para
  [ Code
    ( "", [ "interpreted-text" ], [ ( "role", "myrole" ) ] ) "hi`there"
  ]
]
```

Newline is okay, as long as not blank:
```
% pandoc -f rst -t native
`hi
there`:myrole:
^D
[ Para
  [ Code
    ( "", [ "interpreted-text" ], [ ( "role", "myrole" ) ] ) "hi\nthere"
  ]
]
```

Use span for title-reference:
```
% pandoc -f rst -t native
`default`
^D
[ Para [ Span ( "", [ "title-ref" ], [] ) [ Str "default" ] ] ]
```