New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

md-includes

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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 proces

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
2
Created
Source

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:

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:

md-includes <sourceDirectory> --output=<outputDirectory> [OPTIONS]

Required arguments

<sourceDirectory>
	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

Keywords

markdown

FAQs

Package last updated on 24 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts