From 90d8205e174c8b734423e81ada5a5f0b59755f6d Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Wed, 17 Aug 2022 15:45:32 +0200 Subject: [PATCH] Org template: add abstract from metadata as block of type "abstract" See #8204. --- data/templates/default.org | 5 +++++ test/command/8204.md | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 test/command/8204.md diff --git a/data/templates/default.org b/data/templates/default.org index a7daef7df..ee073c6e5 100644 --- a/data/templates/default.org +++ b/data/templates/default.org @@ -13,6 +13,11 @@ $for(header-includes)$ $header-includes$ $endfor$ +$if(abstract)$ +#+begin_abstract +$abstract$ +#+end_abstract +$endif$ $for(include-before)$ $include-before$ diff --git a/test/command/8204.md b/test/command/8204.md new file mode 100644 index 000000000..80a21564d --- /dev/null +++ b/test/command/8204.md @@ -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 +```