diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2016-07-05 11:49:45 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2016-07-05 11:49:45 +0200 |
commit | 5378b7c5bdf032938372883db0d31a5d44b82c57 (patch) | |
tree | 3379f9c2bcdd4e1740d8218a119c811ac817fa19 /tests | |
parent | e548b8df072c4eecfeb43f94c6517c35d5eba30c (diff) |
Org writer: improve Div handling
Div blocks handling is changed to make the output look more like
idiomatic org mode:
- Div-wrapped content is output as-is if the div's attribute is the
null attribute.
- Div containers with an id but neither classes nor key-value pairs
are unwrapped and the id is added as an anchor.
- Divs with classes associated with greater block elements are
wrapped in a `#+BEGIN`...`#+END` block.
- The old behavior for Divs with more complex attributes is kept.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/writer.org | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/tests/writer.org b/tests/writer.org index 4c7f363a6..cf6305ec9 100644 --- a/tests/writer.org +++ b/tests/writer.org @@ -405,54 +405,14 @@ Blank line after term, indented marker, alternate markers: Simple block on one line: -#+BEGIN_HTML - <div> -#+END_HTML - foo -#+BEGIN_HTML - </div> -#+END_HTML - And nested without indentation: -#+BEGIN_HTML - <div> -#+END_HTML - -#+BEGIN_HTML - <div> -#+END_HTML - -#+BEGIN_HTML - <div> -#+END_HTML - foo -#+BEGIN_HTML - </div> -#+END_HTML - -#+BEGIN_HTML - </div> -#+END_HTML - -#+BEGIN_HTML - <div> -#+END_HTML - bar -#+BEGIN_HTML - </div> -#+END_HTML - -#+BEGIN_HTML - </div> -#+END_HTML - Interpreted markdown in a table: #+BEGIN_HTML @@ -497,16 +457,8 @@ And this is *strong* Here's a simple block: -#+BEGIN_HTML - <div> -#+END_HTML - foo -#+BEGIN_HTML - </div> -#+END_HTML - This should be a code block, though: #+BEGIN_EXAMPLE @@ -523,32 +475,8 @@ As should this: Now, nested: -#+BEGIN_HTML - <div> -#+END_HTML - -#+BEGIN_HTML - <div> -#+END_HTML - -#+BEGIN_HTML - <div> -#+END_HTML - foo -#+BEGIN_HTML - </div> -#+END_HTML - -#+BEGIN_HTML - </div> -#+END_HTML - -#+BEGIN_HTML - </div> -#+END_HTML - This should just be an HTML comment: #+BEGIN_HTML |