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

hexo-renderer-markdown-it

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-renderer-markdown-it

Markdown-it is a Markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.

1.0.1
Source
npm
Version published
Weekly downloads
998
-17.18%
Maintainers
1
Weekly downloads
 
Created
Source

hexo-renderer-markdown-it

Add support for Markdown and CommonMark. This plugin uses Markdown-it as a render engine on Hexo.

Installation

In it's current version, Hexo with hexo-renderer-marked predefined as a markdown renderer.

To use hexo-renderer-markdown-it you will have to:

  • Remove hexo-renderer-marked
$ npm uninstall hexo-renderer-marked --save
  • Install hexo-renderer-markdown-it
$ npm install hexo-renderer-markdown-it --save
  • Configure the plugin using the template in the configuration section.

Configuration

Markdown-it is one of the most flexible markdown renderers in node. That means it comes with lots of configuration options and even plugins to extend it self.

To be able to expose all this functionality inside Hexo would be an enormous task. That said, feel free to open an issue if there's something you need.

You can configure this plugin by copy and pasting the following code into your main config.yml.

# Markdown-it config
## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/blob/master/README.md
MarkdownIt:
  # Enable HTML tags in source. Also needed so hexo can process code tags and
  # shortcodes.
  html: true,
  # Use '/' to close single tags (<br />). This is only for full CommonMark
  # compatibility.
  xhtmlOut: false,
  # Convert '\n' (newline) in paragraphs into <br>
  breaks: false,
  # CSS language prefix for fenced blocks. Useful for external highlighters.
  langPrefix: '',  
  # Autoconvert URL-like text to links
  linkify: true,
  # Enable some language-neutral replacement & quotes beautification
  typographer: true,
  # Double + single quotes replacement pairs, when typographer enabled,
  # and smartquotes on. Set doubles to '«»' for Russian, '„“' for German.
  quotes: '“”‘’',

Keywords

hexo

FAQs

Package last updated on 11 Jan 2015

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