diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-10-05 06:47:26 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-10-05 07:54:54 +0300 |
commit | 718d4f549de993fb4caef13d22ae19f86490a3b2 (patch) | |
tree | f5db33d15289a2dd2e5e229a5aa2ea6d10a7f1cc /subplot.md | |
parent | 9dd03cc102bd52393d7c7582752cf808b2c2445a (diff) | |
download | subplot-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.md | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -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 |