aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-08-13 11:00:28 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-08-13 11:00:28 -0700
commitc3f17cb0d7d590c828214deda1d58e65da1b3812 (patch)
tree84412bfe99a8773362ab67735ef890b31105b155 /test
parent91cc2492fac8ebfbb88d6873f834ca7c73a0f83f (diff)
downloadpandoc-c3f17cb0d7d590c828214deda1d58e65da1b3812.tar.gz
RST writer: use `.. container` for generic Divs, instead of raw HTML.
Diffstat (limited to 'test')
-rw-r--r--test/writer.rst82
1 files changed, 14 insertions, 68 deletions
diff --git a/test/writer.rst b/test/writer.rst
index 0c986b887..b47490de2 100644
--- a/test/writer.rst
+++ b/test/writer.rst
@@ -385,53 +385,23 @@ HTML Blocks
Simple block on one line:
-.. raw:: html
-
- <div>
-
-foo
+.. container::
-.. raw:: html
-
- </div>
+ foo
And nested without indentation:
-.. raw:: html
-
- <div>
-
-.. raw:: html
-
- <div>
-
-.. raw:: html
-
- <div>
-
-foo
-
-.. raw:: html
-
- </div>
-
-.. raw:: html
-
- </div>
+.. container::
-.. raw:: html
+ .. container::
- <div>
+ .. container::
-bar
+ foo
-.. raw:: html
+ .. container::
- </div>
-
-.. raw:: html
-
- </div>
+ bar
Interpreted markdown in a table:
@@ -477,15 +447,9 @@ And this is **strong**
Here’s a simple block:
-.. raw:: html
-
- <div>
-
-foo
-
-.. raw:: html
+.. container::
- </div>
+ foo
This should be a code block, though:
@@ -503,31 +467,13 @@ As should this:
Now, nested:
-.. raw:: html
-
- <div>
+.. container::
-.. raw:: html
+ .. container::
- <div>
+ .. container::
-.. raw:: html
-
- <div>
-
-foo
-
-.. raw:: html
-
- </div>
-
-.. raw:: html
-
- </div>
-
-.. raw:: html
-
- </div>
+ foo
This should just be an HTML comment: