blob: aa09b08e73e3f2cfae5f79e8d35b14aa16c98fc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
```
% 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"]]
```
|