Skip to content

Exporting Example blocks from Org to RST #4748

@kaushalmodi

Description

@kaushalmodi

Example blocks in Org mode should export as :: blocks in RST.

Pandoc version

pandoc 2.2.1

Command

pandoc input.org -o output.rst

Org Snippet

Before example block.
#+begin_example
This is in an example block.
#+end_example
After example block.

Actual (incorrect) RST output

Before example block.

.. code:: example

   This is in an example block.

After example block.

Expected RST output

Before example block.

::

   This is in an example block.

After example block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions