diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-11-02 09:40:08 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-11-02 09:40:08 -0700 |
commit | 724fd655e79a24b5150f0253325d9653f59e9631 (patch) | |
tree | ef0e5d7b6d3aac3386b0f0b2da7a78e503d45ff7 /test/command | |
parent | 4b58384c0a832ceee5b8d26dd77b38611976a7fd (diff) | |
download | pandoc-724fd655e79a24b5150f0253325d9653f59e9631.tar.gz |
Add test case for #5845.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/5845.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/command/5845.md b/test/command/5845.md new file mode 100644 index 000000000..aa09b08e7 --- /dev/null +++ b/test/command/5845.md @@ -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"]] +``` |