summaryrefslogtreecommitdiff
path: root/test/command/5321.md
blob: 43e0ddc74aa46769e0baefeea1d4a2c3eda0e521 (plain) (blame)
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
```
% pandoc -f jats -t native
<fig id="fig-1">
  <caption>
    <p>bar</p>
  </caption>
  <graphic xlink:href="foo.png" xlink:alt-text="baz" />
</fig>
^D
[ Figure
    ( "fig-1" , [] , [] )
    (Caption Nothing [ Plain [ Str "bar" ] ])
    [ Div
        ( "" , [ "caption" ] , [] )
        [ Header 6 ( "" , [] , [] ) [] , Para [ Str "bar" ] ]
    , Para
        [ Image ( "" , [] , [] ) [ Str "baz" ] ( "foo.png" , "" ) ]
    ]
]
```

```
% pandoc -f jats -t native
<fig id="fig-1">
  <caption>
    <title>foo</title>
    <p>bar</p>
  </caption>
  <graphic xlink:href="foo.png" xlink:alt-text="baz" />
</fig>
^D
[ Figure
    ( "fig-1" , [] , [] )
    (Caption
       Nothing [ Plain [ Str "foo" , LineBreak , Str "bar" ] ])
    [ Div
        ( "" , [ "caption" ] , [] )
        [ Header 6 ( "" , [] , [] ) [ Str "foo" ]
        , Para [ Str "bar" ]
        ]
    , Para
        [ Image ( "" , [] , [] ) [ Str "baz" ] ( "foo.png" , "" ) ]
    ]
]
```