jgm/pandoc

Admonition blocks not converted back from html to rst.

Open

#4.511 geöffnet am 30. März 2018

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Haskell (3.850 Forks)batch import
enhancementformat:RSTgood first issuewriter

Repository-Metriken

Stars
 (44.133 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 7T) (7 gemergte PRs in 30 T)

Beschreibung

Not sure if this is a bug or just an unimplemented feature.

Converting rST admonition blocks to html and back to rST doesn't produce the same rST syntax. Instead, there are raw inclusions. Tested on Pandoc 2.1.3.

It would be nice to recognize note blocks, like it happens with <pre>.

Here's a full demo: https://github.com/NickVolynkin/pandoc-admonition-demo And a short example.

Expected output:

.. note::

   Note text

Actual output:


.. raw:: html

   <div class="note">

.. raw:: html

   <div class="admonition-title">

Note

.. raw:: html

   </div>

Note text

.. raw:: html

   </div>

Contributor Guide