Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

DiscreteTom/mdcg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MDCG

npm

Markdown Content Generator.

Useful when you want to reference other file contents in your markdown content.

Installation

yarn add mdcg

Usage

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 is code, lang means the language of the code block, default: the file's extension.

About

Markdown content generator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors