diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-07-18 22:30:05 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-07-18 22:31:03 -0700 |
commit | 28cad165179378369fcf4d25656ea28357026baa (patch) | |
tree | d94b27ef8175fbdfaee04828bf5b6f64528acd4a /test/writer.markdown | |
parent | 5c655e86d5d34172bc5892927309d8dff6023493 (diff) | |
download | pandoc-28cad165179378369fcf4d25656ea28357026baa.tar.gz |
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.
Diffstat (limited to 'test/writer.markdown')
-rw-r--r-- | test/writer.markdown | 52 |
1 files changed, 47 insertions, 5 deletions
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} <table> +``` +```{=html} <tr> +``` +```{=html} <td> +``` This is *emphasized* +```{=html} </td> +``` +```{=html} <td> +``` And this is **strong** +```{=html} </td> +``` +```{=html} </tr> +``` +```{=html} </table> +``` +```{=html} <script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script> - +``` Here's a simple block: <div> @@ -447,41 +464,64 @@ foo This should just be an HTML comment: +```{=html} <!-- Comment --> - +``` Multiline: +```{=html} <!-- Blah Blah --> +``` +```{=html} <!-- This is another comment. --> - +``` Code block: <!-- Comment --> Just plain comment, with trailing spaces on the line: +```{=html} <!-- foo --> - +``` Code: <hr /> Hr's: +```{=html} <hr> +``` +```{=html} <hr /> +``` +```{=html} <hr /> +``` +```{=html} <hr> +``` +```{=html} <hr /> +``` +```{=html} <hr /> +``` +```{=html} <hr class="foo" id="bar" /> +``` +```{=html} <hr class="foo" id="bar" /> +``` +```{=html} <hr class="foo" id="bar"> +``` ------------------------------------------------------------------------------ @@ -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} +``` ------------------------------------------------------------------------------ |