From 28cad165179378369fcf4d25656ea28357026baa Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 18 Jul 2019 22:30:05 -0700 Subject: Markdown writer: prefer using raw_attribute when enabled. The `raw_attribute` will be used to mark raw bits, even HTML and LaTeX, and even when `raw_html` and `raw_tex` are enabled, as they are by default. To get the old behavior, disable `raw_attribute` in the writer. Closes #4311. --- test/command/4164.md | 2 +- test/command/macros.md | 10 +++++----- test/command/parse-raw.md | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'test/command') diff --git a/test/command/4164.md b/test/command/4164.md index 8cfc960a0..50c3117ec 100644 --- a/test/command/4164.md +++ b/test/command/4164.md @@ -12,7 +12,7 @@ Here is inline html:
- bla bla +``{=html} bla bla
diff --git a/test/command/macros.md b/test/command/macros.md index 0c91944a1..e3c07e661 100644 --- a/test/command/macros.md +++ b/test/command/macros.md @@ -1,5 +1,5 @@ ``` -% pandoc -f markdown+latex_macros -t markdown +% pandoc -f markdown+latex_macros -t markdown+raw_tex-raw_attribute \newcommand{\my}{\phi} $\my+\my$ ^D @@ -9,7 +9,7 @@ $\phi+\phi$ ``` ``` -% pandoc -f markdown-latex_macros -t markdown +% pandoc -f markdown-latex_macros -t markdown+raw_tex-raw_attribute \newcommand{\my}{\phi} $\my+\my$ ^D @@ -70,7 +70,7 @@ x &= y\\\end{aligned}\] ``` ``` -% pandoc -f markdown+latex_macros -t markdown +% pandoc -f markdown+latex_macros -t markdown+raw_tex-raw_attribute \newcommand{\my}{\phi} \begin{equation} \my+\my @@ -84,7 +84,7 @@ x &= y\\\end{aligned}\] ``` ``` -% pandoc -f markdown-latex_macros -t markdown +% pandoc -f markdown-latex_macros -t markdown+raw_tex-raw_attribute \newcommand{\my}{\phi} \begin{equation} \my+\my @@ -98,7 +98,7 @@ x &= y\\\end{aligned}\] ``` ``` -% pandoc -f markdown+latex_macros -t markdown +% pandoc -f markdown+latex_macros -t markdown+raw_tex-raw_attribute \newcommand{\my}{\emph{a}} \my ^D diff --git a/test/command/parse-raw.md b/test/command/parse-raw.md index f4e493c69..a1a41b551 100644 --- a/test/command/parse-raw.md +++ b/test/command/parse-raw.md @@ -2,7 +2,7 @@ % pandoc -f latex+raw_tex -t markdown \emph{Hi \foo{there}} ^D -*Hi \foo{there}* +*Hi `\foo{there}`{=latex}* ``` ``` @@ -16,7 +16,7 @@ % pandoc -f html+raw_html -t markdown Hi there ^D -*Hi there* +*Hi ``{=html}there``{=html}* ``` ``` -- cgit v1.2.3