From f6c92c7523a4070f13fbf193ef80ad7ac63f6693 Mon Sep 17 00:00:00 2001 From: Vasily Alferov Date: Sun, 14 Jul 2019 02:55:41 +0300 Subject: Fix #4499: add mbox and hbox handling to LaTeX reader (#5586) When `+raw_tex` is enabled, these are passed through literally. Otherwise, they are handled in a way that emulates LaTeX's behavior. --- test/command/4499.md | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 test/command/4499.md (limited to 'test/command') diff --git a/test/command/4499.md b/test/command/4499.md new file mode 100644 index 000000000..073f76c0e --- /dev/null +++ b/test/command/4499.md @@ -0,0 +1,87 @@ +``` +% pandoc -f latex -t html +\mbox{abc def} ghi +^D +

abc def ghi

+``` + +``` +% pandoc -f latex+raw_tex -t native +\mbox{abc def} +^D +[Para [RawInline (Format "latex") "\\mbox{abc def}"]] +``` + +``` +% pandoc -f latex -t html +abc \mbox{\textit{def ghi} jkl} mno +^D +

abc def ghi jkl mno

+``` + +``` +% pandoc -f latex -t html +abc \mbox{def \\ ghi} jkl +^D +

abc defghi jkl

+``` + +``` +% pandoc -f latex -t html +abc \mbox{def +ghi} +^D +

abc def ghi

+``` + +``` +% pandoc -f latex -t html +abc \mbox{def \textit{ghi \\ jkl} +mno} pqr +^D +

abc def ghijkl mno pqr

+``` + +``` +% pandoc -f latex -t html +\hbox{abc def} ghi +^D +

abc def ghi

+``` + +``` +% pandoc -f latex+raw_tex -t native +\hbox{abc def} +^D +[Para [RawInline (Format "latex") "\\hbox{abc def}"]] +``` + +``` +% pandoc -f latex -t html +abc \hbox{\textit{def ghi} jkl} mno +^D +

abc def ghi jkl mno

+``` + +``` +% pandoc -f latex -t html +abc \hbox{def \\ ghi} jkl +^D +

abc defghi jkl

+``` + +``` +% pandoc -f latex -t html +abc \hbox{def +ghi} +^D +

abc def ghi

+``` + +``` +% pandoc -f latex -t html +abc \hbox{def \textit{ghi \\ jkl} +mno} pqr +^D +

abc def ghijkl mno pqr

+``` -- cgit v1.2.3