Based on project https://github.com/cmacmackin/markdown-include
# release
pip install git+https://github.com/fonimus/markdown-include-snippets.git@<tag>
# master
pip install git+https://github.com/fonimus/markdown-include-snippets.git
{!/path/to/file.java!}
package io.fonimus;
public class Test {
// tag::test
public void test(){
}
// end::test
}
{!/path/to/file.java!tag=test}
public void test(){
}
{!/path/to/file.java!lines=3}
public class Test {
{!/path/to/file.java!lines=1,3,6}
package io.fonimus;
public class Test {
public void test(){
{!/path/to/file.java!lines=6-8}
public void test(){
}
- If file is not found, blank line is added
- If tag is not found, all file is included
- If start tag or end tag is not found, all file is included