1.3.1 • Published 6 years ago
markdown-source-import v1.3.1
Markdown Source Import

Install
npm install markdown-source-import --save-devBasic
# Title
<!-- import __stories__/test.stories.tsx -->
<!-- importend -->
<!-- index __documents__/*.md -->
<!-- indexend -->Add comment to markdown documents.
npx markdown-source-import file.md
npx markdown-source-import file1.md file2.md file3.md
npx markdown-source-import ./**/*.mdExecute markdown-source-import [file] command.
Import Parameters
<!-- import **/*.test.ts -->import multiple source files with glob pattern<!-- import test.tsx --slice 40:60 -->line slice option<!-- import **/*.test.ts --title-tag h4 -->add filename above code block
Index Parameters
<!-- index **/*.md -->create indexes with glob pattern
Git Hook
{
"husky": {
"hooks": {
"pre-commit": "markdown-source-import \"{,!(node_modules)/**/}*.md\" --git-add"
}
}
}Add markdown-source-import \"{,!(node_modules)/**/}*.md\" --git-add command in pre-commit hook.
The
"{,!(node_modules)/**/}*.md"glob pattern will process all*.mdfiles exceptnode_modulesdirectory. (eg."{,!(dir1|dir2|dir3)/**/}*.md")
1.3.1
6 years ago
1.2.3
6 years ago
1.3.0
6 years ago
1.2.2
6 years ago
1.2.2-alpha.2
6 years ago
1.2.2-alpha.1
6 years ago
1.2.1
6 years ago
1.2.1-alpha.1
6 years ago
1.2.0
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.1.0-alpha.1
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago