aboutsummaryrefslogtreecommitdiff
path: root/test/command/5845.md
blob: d551740b1e157c0bfdfa72c4255a247cd1d3de52 (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
```
% 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" ]
]
```