-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
Description
$ pandoc -t html test.org
<iframe></iframe>
$ cat test.org
#+BEGIN_HTML
<iframe></iframe>
#+END_HTML
$ pandoc -t html test.org
<p><iframe></iframe></p>
<p>#+END<sub>HTML</sub></p>
$ cat test.org
#+BEGIN_HTML:
<iframe></iframe>
#+END_HTML
$ pandoc -t html test.org
<p><iframe></iframe></p>
$ cat test.org
#+BEGIN_HTML:
<iframe></iframe>
#+END_HTML:
At least the third version is slightly incorrect according to https://orgmode.org/worg/dev/org-syntax.html#Greater_Blocks :
NAME can contain any non-whitespace character.
So to be correct, we would need output of
<html:><p><iframe></iframe></p></html:>
where : is replaced by some legal character.
The second version is what I'm personally running into. I would expect one of the following:
- ignore the
:after begin_block - output the (escaped) incorrect block markup, including
#+begin_block:so that you can see what's going on - (issue warning)
This also happens with -t json.
I'm using pandoc 2.0.6-20
ps. I know, orgmode special attributes vs. blocks are hard to parse. :-(
Reactions are currently unavailable