Org template: add abstract from metadata as block of type "abstract"

See #8204.
This commit is contained in:
Albert Krewinkel 2022-08-17 15:45:32 +02:00
parent 81e31ee637
commit 90d8205e17
No known key found for this signature in database
GPG key ID: 388DC0B21F631124
2 changed files with 21 additions and 0 deletions

View file

@ -13,6 +13,11 @@ $for(header-includes)$
$header-includes$
$endfor$
$if(abstract)$
#+begin_abstract
$abstract$
#+end_abstract
$endif$
$for(include-before)$
$include-before$

16
test/command/8204.md Normal file
View file

@ -0,0 +1,16 @@
```
% 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
```