aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/command/5845.md16
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"]]
+```