0.1.3 • Published 3 years ago
mdcg v0.1.3
MDCG
Markdown Content Generator.
Useful when you want to reference other file contents in your markdown content.
Installation
yarn add mdcgUsage
Use a special tag to specify the content. The default tag is include.
<include path="./package.json" from="5" to="-1" type="code" lang="json" />Then run mdcg input.md output.md.
Available attributes:
from: from which line, can be negative, default:1, means the first line.to: to which line, can be negative, default:undefined, means eof.type: the content type, default:code.lang: when type iscode,langmeans the language of the code block, default: the file's extension.