aboutsummaryrefslogtreecommitdiff
path: root/test/command/5845.md
blob: aac73cf472c09da6f0b34cbde87139d725e4a5e3 (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
```
% pandoc -t native
\parbox{1em}{#1}
^D
[ Para [ Str "\\parbox{1em}{#1}" ] ]
```

```
% pandoc -t native
\newcommand{\highlight}[1]{\colorbox{yellow}{\parbox{\dimexpr\linewidth-2\fboxsep}{#1}}

Hello World
^D
[ Para
    [ Str "\\newcommand{"
    , RawInline (Format "tex") "\\highlight"
    , Str "}[1]{\\colorbox{yellow}{\\parbox{"
    , RawInline (Format "tex") "\\dimexpr"
    , RawInline (Format "tex") "\\linewidth-2"
    , RawInline (Format "tex") "\\fboxsep"
    , Str "}{#1}}"
    ]
, Para [ Str "Hello" , Space , Str "World" ]
]
```