diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2020-06-20 15:19:03 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2020-06-20 15:19:03 +0000 |
commit | 35aa4d6710389e5b5b364109ac5a0cb375112d87 (patch) | |
tree | 2cb10fa7995c88c54bab014ab9b809fa6ee47a6e /subplot.md | |
parent | f9e5f30e17f22240dee3a6b99fafea7ec0a0a066 (diff) | |
parent | 5ad766749a214a0ce0b320258d16fb5a74fa81b6 (diff) | |
download | subplot-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.md | 29 |
1 files changed, 28 insertions, 1 deletions
@@ -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 |