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/writer.markdown | 52 +++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 47 insertions(+), 5 deletions(-) (limited to 'test/writer.markdown') diff --git a/test/writer.markdown b/test/writer.markdown index 6aab1e597..7393ee18e 100644 --- a/test/writer.markdown +++ b/test/writer.markdown @@ -399,18 +399,35 @@ bar Interpreted markdown in a table: +```{=html} +``` +```{=html} +``` +```{=html} +``` +```{=html} +``` +```{=html} +``` +```{=html}
+``` This is *emphasized* +```{=html} +``` And this is **strong** +```{=html}
+``` +```{=html} - +``` Here's a simple block:
@@ -447,41 +464,64 @@ foo This should just be an HTML comment: +```{=html} - +``` Multiline: +```{=html} +``` +```{=html} - +``` Code block: Just plain comment, with trailing spaces on the line: +```{=html} - +``` Code:
Hr's: +```{=html}
+``` +```{=html}
+``` +```{=html}
+``` +```{=html}
+``` +```{=html}
+``` +```{=html}
+``` +```{=html}
+``` +```{=html}
+``` +```{=html}
+``` ------------------------------------------------------------------------------ @@ -540,7 +580,7 @@ Ellipses...and...and.... LaTeX ===== -- \cite[22-23]{smith.1899} +- `\cite[22-23]{smith.1899}`{=tex} - $2+2=4$ - $x \in y$ - $\alpha \wedge \omega$ @@ -560,11 +600,13 @@ These shouldn't be math: Here's a LaTeX table: +```{=tex} \begin{tabular}{|l|l|}\hline Animal & Number \\ \hline Dog & 2 \\ Cat & 1 \\ \hline \end{tabular} +``` ------------------------------------------------------------------------------ -- cgit v1.2.3