Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-include-markdown

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-include-markdown

Easily load markdown files in Markdown.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

  • hexo issue 1904 How do I split a post up into several smaller markdown files?

  • hexo issue 2376 How to make a home page out of multiple markdown files?

  • hexo issue 2582 Cache not updating on nested includes

License

MIT

Keywords

FAQs

Package last updated on 08 Sep 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc