git.iko.soy/typeable/pandoc
on eceb8ea help sign in
16 lines 486 B history raw
1```
2% pandoc -t native
3\parbox{1em}{#1}
4^D
5[Para [Str "\\parbox{1em}{#1}"]]
6```
8```
9% pandoc -t native
10\newcommand{\highlight}[1]{\colorbox{yellow}{\parbox{\dimexpr\linewidth-2\fboxsep}{#1}}
12Hello World
13^D
14[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}}"]
15,Para [Str "Hello",Space,Str "World"]]
16```