From 58447bba98cb162b21c30755e0e237f890160a1e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 15 May 2018 09:15:45 -0700 Subject: rawLaTeXBlock: don't expand macros in macro definitions! Closes #4653. Note that this only affected LaTeX in markdown. Added regression test. --- test/command/4653.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/command/4653.md (limited to 'test/command/4653.md') diff --git a/test/command/4653.md b/test/command/4653.md new file mode 100644 index 000000000..24a706e89 --- /dev/null +++ b/test/command/4653.md @@ -0,0 +1,8 @@ +``` +% pandoc -t latex +\let\tex\TeX +\renewcommand{\TeX}{\tex\xspace} +^D +\let\tex\TeX +\renewcommand{\TeX}{\tex\xspace} +``` -- cgit v1.2.3