summaryrefslogtreecommitdiff
path: root/subplot.md
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2020-06-20 15:19:03 +0000
committerDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2020-06-20 15:19:03 +0000
commit35aa4d6710389e5b5b364109ac5a0cb375112d87 (patch)
tree2cb10fa7995c88c54bab014ab9b809fa6ee47a6e /subplot.md
parentf9e5f30e17f22240dee3a6b99fafea7ec0a0a066 (diff)
parent5ad766749a214a0ce0b320258d16fb5a74fa81b6 (diff)
downloadsubplot-35aa4d6710389e5b5b364109ac5a0cb375112d87.tar.gz
Merge branch 'extract' into 'master'
Add sp-extract Closes #41 See merge request larswirzenius/subplot!53
Diffstat (limited to 'subplot.md')
-rw-r--r--subplot.md29
1 files changed, 28 insertions, 1 deletions
diff --git a/subplot.md b/subplot.md
index d975e97..a73b805 100644
--- a/subplot.md
+++ b/subplot.md
@@ -2178,8 +2178,35 @@ It does not have a YAML metadata block.
~~~~~~~~
+# Extract embedded files
+
+`sp-extract` extracts embedded files from a subplot file.
+
+~~~scenario
+given file embedded-file.md
+and file expected.txt
+when I run sp-extract embedded-file.md foo.txt -d .
+then files foo.txt and expected.txt match
+~~~
+
+~~~~~~{#embedded-file.md .file .markdown .numberLines}
+---
+title: Embedded file
+...
+
+~~~{#foo.txt .file}
+This is a test file.
+~~~
+
+~~~~~~
+
+~~~{#expected.txt .file}
+This is a test file.
+~~~
+
+
+
-
---
title: "Subplot"
author: The Subplot project