From c3f17cb0d7d590c828214deda1d58e65da1b3812 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 13 Aug 2018 11:00:28 -0700 Subject: RST writer: use `.. container` for generic Divs, instead of raw HTML. --- test/writer.rst | 82 ++++++++++----------------------------------------------- 1 file changed, 14 insertions(+), 68 deletions(-) (limited to 'test') 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 - -
- -foo +.. container:: -.. raw:: html - -
+ foo And nested without indentation: -.. raw:: html - -
- -.. raw:: html - -
- -.. raw:: html - -
- -foo - -.. raw:: html - -
- -.. raw:: html - -
+.. container:: -.. raw:: html + .. container:: -
+ .. container:: -bar + foo -.. raw:: html + .. container:: -
- -.. raw:: html - -
+ bar Interpreted markdown in a table: @@ -477,15 +447,9 @@ And this is **strong** Here’s a simple block: -.. raw:: html - -
- -foo - -.. raw:: html +.. container:: -
+ foo This should be a code block, though: @@ -503,31 +467,13 @@ As should this: Now, nested: -.. raw:: html - -
+.. container:: -.. raw:: html + .. container:: -
+ .. container:: -.. raw:: html - -
- -foo - -.. raw:: html - -
- -.. raw:: html - -
- -.. raw:: html - -
+ foo This should just be an HTML comment: -- cgit v1.2.3