NIP1
This is chunk 1
on two lines
# $endsnippet

# $snippet SNIP2
This is chunk 2
# $endsnippet

# $snippet SNIP1
This is chunk 3
# $endsnippet

AFTER
</code></pre><p>File-based text block with snippet extraction and download name</p><pre><code class=language-plain data-expandlinks=true data-downloadas=foo.txt data-repo=istio>This is chunk 2</code></pre><p>File-based bash text block with download name</p><pre><code class=language-bash data-expandlinks=true data-downloadas=foo.sh data-repo=istio>$ kubectl ap