summaryrefslogtreecommitdiff
path: root/subplot.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-10-05 06:47:26 +0300
committerLars Wirzenius <liw@liw.fi>2020-10-05 07:54:54 +0300
commit718d4f549de993fb4caef13d22ae19f86490a3b2 (patch)
treef5db33d15289a2dd2e5e229a5aa2ea6d10a7f1cc /subplot.md
parent9dd03cc102bd52393d7c7582752cf808b2c2445a (diff)
downloadsubplot-718d4f549de993fb4caef13d22ae19f86490a3b2.tar.gz
fix: handle all kinds of inline elements in titles, headings
This only matters for codegen and others who interpret the document title and headings as text. Docgen handles everything via Pandoc already.
Diffstat (limited to 'subplot.md')
-rw-r--r--subplot.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/subplot.md b/subplot.md
index 58e8f71..6c6eccf 100644
--- a/subplot.md
+++ b/subplot.md
@@ -1425,6 +1425,46 @@ then command fails
~~~
+#### Subplot accepts title and headings with inline markup
+
+Markdown allows using any inline markup in document titles and chapter
+and section headings. Verify that Subplot accepts them.
+
+~~~scenario
+given file fancytitle.md
+and file b.yaml
+and file f.py
+and an installed subplot
+when I try to run sp-docgen fancytitle.md -o foo.md
+then command is successful
+when I try to run sp-codegen fancytitle.md -o foo.md
+then command is successful
+~~~
+
+~~~{#fancytitle.md .file .markdown .numberLines}
+---
+title: Plain *emph* **strong** ~~strikeout~~ superscript^10^ subscript~10~
+bindings: b.yaml
+functions: f.py
+...
+
+
+# `code` [smallcaps]{.smallcaps} $$2^10$$
+
+## "double quoted"
+## 'single quoted'
+## <b>raw inline</b>
+## <span>span</span>
+## ![alt](image.jpg)
+## footnote[^1]
+
+[^1]: footnote
+
+This is a very simple Markdown file that uses every kind of inline
+markup in the title and chapter heading.
+~~~
+
+
## Running only chosen scenarios
To make the edit-test loop more convenient for the test programs