diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2017-08-31 18:02:07 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2017-09-01 00:08:12 +0200 |
commit | 6a6c3858b47671f02f4f50ca2d6ab97d280a0f49 (patch) | |
tree | de72df56fb65b6aacef6ce7403d41557bcc33d43 /test | |
parent | 50ec64ffbc56db2c2312feb606df4bc36142b3f0 (diff) | |
download | pandoc-6a6c3858b47671f02f4f50ca2d6ab97d280a0f49.tar.gz |
Org writer: stop using raw HTML to wrap divs
Div's are difficult to translate into org syntax, as there are multiple
div-like structures (drawers, special blocks, greater blocks) which all
have their advantages and disadvantages. Previously pandoc would
use raw HTML to preserve the full div information; this was rarely
useful and resulted in visual clutter. Div-rendering was changed to
discard the div's classes and key-value pairs if there is no natural way
to translate the div into an org structure.
Closes: #3771
Diffstat (limited to 'test')
-rw-r--r-- | test/command/3771.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/command/3771.md b/test/command/3771.md new file mode 100644 index 000000000..1d3a75ae1 --- /dev/null +++ b/test/command/3771.md @@ -0,0 +1,14 @@ +``` +% pandoc -f html -t org +<div class="Section1"> + Today is a nice day. +</div> +<div id="forecast"> + Tomorrow will be rainy. +</div> +^D +Today is a nice day. + +<<forecast>> +Tomorrow will be rainy. +``` |