aboutsummaryrefslogtreecommitdiff
path: root/test/command/2549.md
blob: 56e7f2c2fe86184f1851cab219a318a97f799231 (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
```
% pandoc -f latex -t native
\hypertarget{foo}{%
\section{A section}\label{foo}
}
^D
[ Header 1 ( "foo" , [] , [] ) [ Str "A section" ] ]
```

```
% pandoc -f latex -t native
\hypertarget{bar}{%
\section{A section}\label{foo}
}
^D
[ Div
    ( "bar" , [] , [] )
    [ Header 1 ( "foo" , [] , [] ) [ Str "A section" ] ]
]
```

```
% pandoc -f latex -t native
Bar \hypertarget{foo}{Foo}
^D
[ Para
    [ Str "Bar " , Span ( "foo" , [] , [] ) [ Str "Foo" ] ]
]
```

```
% pandoc -f latex -t native
\hypertarget{foo}{%
\begin{verbatim}
bar
\end{verbatim}
}
^D
[ Div
    ( "foo" , [] , [] ) [ CodeBlock ( "" , [] , [] ) "bar" ]
]
```