summaryrefslogtreecommitdiff
path: root/subplot.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-09 19:06:58 +0300
committerLars Wirzenius <liw@liw.fi>2021-09-09 19:06:58 +0300
commit38e454e009890f96b181f7df9a26c2b58a3012fe (patch)
treed5569da1209c05bea0ae811e818154f6f49bd12d /subplot.md
parent1afd692bacf6c95d5897d4af74f6f2d4f8b91c1f (diff)
downloadsubplot-38e454e009890f96b181f7df9a26c2b58a3012fe.tar.gz
fix: handle most inline markup in metadata titles
Actually, we only didn't handle `foo` code markup. Sponsored-by: author
Diffstat (limited to 'subplot.md')
-rw-r--r--subplot.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/subplot.md b/subplot.md
index b7169c7..32390c1 100644
--- a/subplot.md
+++ b/subplot.md
@@ -1100,6 +1100,28 @@ then bar was done
~~~
+## Title markup
+
+It is OK to use markup in document titles, in the YAML metadata
+section. This scenario verifies that all markup works.
+
+~~~scenario
+given file title-markup.md
+given an installed subplot
+when I run subplot docgen title-markup.md -o foo.pdf
+then file foo.pdf exists
+~~~
+
+~~~~{#title-markup.md .file .markdown .numberLines}
+---
+title: This _uses_ ~~all~~ **most** inline `markup`
+subtitle: H~2~O is not 2^10^
+template: python
+...
+
+# Introduction
+~~~~
+
## Empty lines in scenarios
This scenario verifies that empty lines in scenarios are ignored.