Add test case for #5845.
commit724fd655e79a24b5150f0253325d9653f59e9631
authorJohn MacFarlane <jgm@berkeley.edu>
dateSat 2 Nov 2019, 09:40 (7 years ago)
parent4b58384
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+```