summaryrefslogtreecommitdiff
path: root/subplot.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-10-22 08:37:30 +0300
committerLars Wirzenius <liw@liw.fi>2022-10-22 12:17:49 +0300
commitb925f9601b30afd9b0c2a5e7354440a63aba8c60 (patch)
tree3a3917c170177423823bf7c1518b4d34d0c3edca /subplot.md
parent81e985cc026d67e3d506d485b3bf013bfd82987e (diff)
downloadsubplot-b925f9601b30afd9b0c2a5e7354440a63aba8c60.tar.gz
feat: allow arbitrary Pandoc metadata in a .subplot
The "pandoc" key gets added to the metadata given to Pandoc as-is. Sponsored-by: author
Diffstat (limited to 'subplot.md')
-rw-r--r--subplot.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/subplot.md b/subplot.md
index 8daf1dd..27da981 100644
--- a/subplot.md
+++ b/subplot.md
@@ -2474,6 +2474,32 @@ and file mtime.html contains "Geoffrey Butler"
and file mtime.html contains "2020-02-26 07:53"
~~~
+### Pandoc metadata
+
+~~~scenario
+given file pandoc.subplot
+given file pandoc.md
+and an installed subplot
+when I run subplot docgen pandoc.subplot -o pandoc.html
+when I run cat pandoc.html
+then file pandoc.html exists
+and file pandoc.html contains "<title>The Fabulous Title</title>"
+and file pandoc.html contains "Superlative Subtitle"
+~~~
+
+~~~{#pandoc.subplot .file .yaml .numberLines}
+title: The Fabulous Title
+markdowns:
+- pandoc.md
+pandoc:
+ subtitle: Superlative Subtitle
+~~~
+
+~~~{#pandoc.md .file .markdown .numberLines}
+# Introduction
+This is a test document. That's all.
+~~~
+
### Missing bindings file
If a bindings file is missing, the error message should name the