Add test case for #5845.
This commit is contained in:
parent
4b58384c0a
commit
724fd655e7
1 changed files with 16 additions and 0 deletions
16
test/command/5845.md
Normal file
16
test/command/5845.md
Normal file
|
@ -0,0 +1,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"]]
|
||||
```
|
Loading…
Reference in a new issue