git.iko.soy/typeable/pandoc
on master help sign in
Add test case for #5845.
724fd65John MacFarlane
test/command/5845.mdnew file+16
@@ -0,0 +1,16 @@
1+```
2+% pandoc -t native
3+\parbox{1em}{#1}
4+^D
5+[Para [Str "\\parbox{1em}{#1}"]]
6+```
7+
8+```
9+% pandoc -t native
10+\newcommand{\highlight}[1]{\colorbox{yellow}{\parbox{\dimexpr\linewidth-2\fboxsep}{#1}}
11+
12+Hello 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+```