New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hexo-insert-markdown

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-insert-markdown

A Hexo plugin that allows you to insert Markdown files in your posts.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
increased by23.53%
Maintainers
1
Weekly downloads
 
Created
Source

hexo-insert-markdown

A Hexo plugin that allows you to insert Markdown files in existing Markdown files.

Usage

  1. Add this plugin to your Hexo site with npm install hexo-insert-markdown --save
  2. Open your Markdown file (a page or post) and include this custom tag:
{% insertmd your/file.md %}

Note: The path to file includes must be relative to the source directory of your Hexo installation.

You also have to rebuild your site to see the effect of this plugin:

hexo clean && hexo generate

FAQ

  • Why is this plugin using tags ({% ... %}) instead of helpers (<%- ... %>)?

Helpers cannot be used in source files, that's why this plugin has to use tags.

  • What was your motivation?

This plugin was inspired by hexo-include-markdown. It extends its functionality with syntax highlighting for code blocks.

Keywords

FAQs

Package last updated on 01 Jun 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

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