pandoc/test/command/8204.md
Albert Krewinkel f294acff38
Org reader: treat "abstract" block as metadata
A block of type "abstract" is assumed to define the document's abstract.
It is transferred from the main text to the metadata.

Closes: #8204
2022-08-17 16:49:37 +02:00

534 B

Include abstract in Org output.

% pandoc --to=org --standalone
---
abstract: |
  This is an *abstract*.

  It has multiple paragraphs.
---
^D
#+begin_abstract
This is an /abstract/.

It has multiple paragraphs.

#+end_abstract

Parse abstract environment as abstract metadata field.

% pandoc --from=org --to=markdown --standalone
#+begin_abstract

This is an /abstract/.

It has multiple paragraphs.
#+end_abstract

Main text
^D
---
abstract: |
  This is an *abstract*.

  It has multiple paragraphs.
---

Main text