mdmerge 1.1.0+1
mdmerge: ^1.1.0+1 copied to clipboard
Use placeholders in markdown files to include other markdown, text or source files.
Installation #
Activate:
dart pub global activate mdmerge
Placeholders #
Add these placeholders to markdown files, the comment tags require three (!) dashes:
# Markdown file
## Include Markdown file
<include file="child.md"></include>
## Include dart file
<include file="lib/mdmerge.dart"></include>
Run #
Dry-run is on per default, will run simulation only:
dart pub global run mdmerge include --input <DIR>
Write to output directory:
dart pub global run mdmerge include --input <DIR> --output <DIR> --no-dry-run
Overwrite source files (potentially destructive, make a backup):
dart pub global run mdmerge include --input <DIR> --no-dry-run