# md-includes **Repository Path**: mirrors_ibm/md-includes ## Basic Information - **Project Name**: md-includes - **Description**: Project to allow includes in markdown files - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-19 - **Last Updated**: 2025-08-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # md-includes This project is a command-line interface or module for handling includes in markdown files. Since markdown parsers don't add support for includes, this project was created to provide the tools to support includes in markdown files without any other processing. With these tools, you can use your favorite markdown parsers after you run `md-includes` to handle the includes in the markdown files. ## Install Run the following command to install the tools globally: ``` bash npm install -g md-includes ``` Depending on your setup, you might need to put `sudo` in front of the command to install it globally. For example, ` sudo npm install -g md-includes` ## Usage In your markdown files you can specify other markdown files that you want to include by using C style includes (#include "filename"). Example markdown file with an include: ``` This is a markdown file that is going to include the contents of another file with the name sub.md. #include "sub.md" ``` Run the following command before you run the markdown parser to substitute includes: ```bash md-includes --output= [OPTIONS] ``` ### Required arguments ``` The path of the directory containing source markdown files. --output The path of the directory to write generated files to. ``` ### Options ``` --includeDir The path of the directory where additional include files should be looked for. The source directory will always be looked at. ``` ## Example The following command is an example of running `md-includes` with the required arguments: ``` md-includes tests/simpleinclude --output=output ```