vim-literate-markdown

A Vim plugin to replicate a subset of Org mode's literate programming, for Markdown files.
git clone git://git.alex.balgavy.eu/vim-literate-markdown.git
Log | Files | Refs | README

commit 6b759ee31bdf9d88370eaef130445fc52ae27aa7
parent 7f7709ab70701b788ae4a9772628ee7cd9106b52
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Mon, 28 Mar 2022 12:23:59 +0200

Test for indented directive

Diffstat:
Atests/indented_tangle_directive.md | 9+++++++++
Atests/indented_tangle_directive.out | 2++
Mtests/run.sh | 4++--
3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/tests/indented_tangle_directive.md b/tests/indented_tangle_directive.md @@ -0,0 +1,9 @@ +# Indented tangle directive +Having indentation should not matter. + +For example, let's say we have stuff in a list: +- Item one + <!-- :Tangle DIRNAME/FILENAME.out --> + ```sh + echo 'this should tangle out.' + ``` diff --git a/tests/indented_tangle_directive.out b/tests/indented_tangle_directive.out @@ -0,0 +1,2 @@ +echo 'this should tangle out.' + diff --git a/tests/run.sh b/tests/run.sh @@ -38,9 +38,9 @@ test_block_exec() { grep "^$(whoami).*grep vim" "$testdir"/exec_block.md >/dev/null 2>&1 && die "Test exec_block FAILED. Found 'grep vim' in process list when running second time" } +# Run the tests test_block_exec - -for i in all_in_one_file only_specific_language two_different_languages simple_macros example_1 example_2 example_3; do run_test "$i"; done +for i in all_in_one_file only_specific_language two_different_languages simple_macros example_1 example_2 example_3 indented_tangle_directive; do run_test "$i"; done rm -r "$tempdir" trap - INT TERM EXIT