diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-05-10 09:10:25 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-05-10 09:14:34 +0300 |
commit | ace211d2c2e9c775872c4a23087763afff5a5bb2 (patch) | |
tree | f6884f4b6c3ee43c9c736f7f91e12d8a5ec98c49 /subplot.md | |
parent | 0a81c16df535853c68d5c833a213a81c2a1a9388 (diff) | |
download | subplot-ace211d2c2e9c775872c4a23087763afff5a5bb2.tar.gz |
feat! allow multiple markdown files for a subplot
Sponsored-by: author
Diffstat (limited to 'subplot.md')
-rw-r--r-- | subplot.md | 38 |
1 files changed, 38 insertions, 0 deletions
@@ -2685,6 +2685,44 @@ bibliography: [foo.bib, bar.bib] ~~~ +### Multiple markdown files + +This scenario tests that the `markdowns` field in metadata can specify +more than one markdown file. + +~~~scenario +given file multimd.subplot +given file md1.md +given file md2.md +given an installed subplot +when I run subplot docgen multimd.subplot -o multimd.html +when I run cat multimd.html +then file multimd.html exists +and file multimd.html contains "<title>The Fabulous Title</title>" +and file multimd.html contains "First markdown file." +and file multimd.html contains "Second markdown file." +~~~ + +~~~{#multimd.subplot .file .yaml .numberLines} +title: The Fabulous Title +authors: +- Alfred Pennyworth +- Geoffrey Butler +date: WIP +markdowns: +- md1.md +- md2.md +~~~ + +~~~{#md1.md .file .markdown .numberLines} +First markdown file. +~~~ + +~~~{#md2.md .file .markdown .numberLines} +Second markdown file. +~~~ + + ## Embedded files Subplot allows data files to be embedded in the input document. This |