summaryrefslogtreecommitdiff
path: root/subplot.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-06-08 06:08:32 +0300
committerLars Wirzenius <liw@liw.fi>2020-06-08 06:21:52 +0300
commit4eaf5080ce8f2bbece3110b196c6e4fa83f4e0d7 (patch)
tree26a3f44c7aacc94370c30427e00696275a2240a9 /subplot.md
parentbba22e1f86967feebf94ebac327f7489c1029afd (diff)
downloadsubplot-4eaf5080ce8f2bbece3110b196c6e4fa83f4e0d7.tar.gz
feat(sp-meta): list names of embedded files in output
Diffstat (limited to 'subplot.md')
-rw-r--r--subplot.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/subplot.md b/subplot.md
index b2cdecf..bf8d651 100644
--- a/subplot.md
+++ b/subplot.md
@@ -1609,6 +1609,7 @@ bibliography: [foo.bib, bar.bib]
"foo.bib",
"bar.bib"
],
+ "files": [],
"scenarios": []
}
~~~
@@ -1812,6 +1813,30 @@ This is another embedded file, and has the same name in uppercase.
~~~~
+### List embedded files
+
+The `sp-meta` command lists embedded files in its output.
+
+~~~scenario
+given file two-embedded.md
+when I run sp-meta two-embedded.md
+then output matches /foo.txt/
+and output matches /bar.yaml/
+~~~
+
+~~~~~~{#two-embedded.md .file .markdown .numberLines}
+---
+title: Two embedded files
+...
+
+~~~{#foo.txt .file}
+~~~
+
+~~~{#bar.yaml. .file}
+~~~
+~~~~~~
+
+
## Embedded graphs
Subplot allows embedding markup to generate graphs into the Markdown document.