Easily load markdownfiles in Markdown .
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github first commit Jun 30, 2017
lib fix Sep 2, 2017
.gitignore first commit Jun 30, 2017
.npmignore first commit Jun 30, 2017
LICENSE first commit Jun 30, 2017
README.md URL changed Sep 8, 2017
index.js
package.json URL changed Sep 8, 2017

README.md

hexo-include-markdown

This plugin for Hexo can easily load another markdown files in markdown file .

Document

Hexoでmarkdownに外部マークダウンを読み込ませるプラグインを作った

Requirements

This plugin supports node.js v4.3 or later. Also , I recommend Hexo v3.2 or later.

Installation

$ npm install hexo-include-markdown --save

Usage

Please add <!-- md your-markdown-path.md --> in markdown file.

For example, edit the source/_posts/hello-world.md as follows.

---
title: Hello World
---

## include sample

Please load another markdown file with the following code.

<!-- md template.md -->

Next, please create a new markdown for the template. For example, create source/_ template/template.md as follows.

### include me ?

Here is the `template.md`'s content . This content is read from an external markdown file.

option

Please set the following options. Please edit _config.yml.

include_markdown:
  dir: source/_template   # Base directory of template markdown
  verbose : true          # If you want to check the path of markdown that use <!-- md --> tag , please set the true.

Referenced issue

License

MIT