chenxixian 26f6b37cfe add files %!s(int64=6) %!d(string=hai) anos
..
lib 26f6b37cfe add files %!s(int64=6) %!d(string=hai) anos
node_modules 26f6b37cfe add files %!s(int64=6) %!d(string=hai) anos
.eslintignore 26f6b37cfe add files %!s(int64=6) %!d(string=hai) anos
.eslintrc 26f6b37cfe add files %!s(int64=6) %!d(string=hai) anos
.jscsrc 26f6b37cfe add files %!s(int64=6) %!d(string=hai) anos
.npmignore 26f6b37cfe add files %!s(int64=6) %!d(string=hai) anos
LICENSE 26f6b37cfe add files %!s(int64=6) %!d(string=hai) anos
README.md 26f6b37cfe add files %!s(int64=6) %!d(string=hai) anos
index.js 26f6b37cfe add files %!s(int64=6) %!d(string=hai) anos
package.json 26f6b37cfe add files %!s(int64=6) %!d(string=hai) anos
yarn.lock 26f6b37cfe add files %!s(int64=6) %!d(string=hai) anos

README.md

hexo-renderer-marked

Build Status NPM version Coverage Status NPM Dependencies NPM DevDependencies

Add support for Markdown. This plugin uses marked as render engine.

Installation

$ npm install hexo-renderer-marked --save
  • Hexo 3: >= 0.2
  • Hexo 2: 0.1.x

Options

You can configure this plugin in _config.yml.

marked:
  gfm: true
  pedantic: false
  sanitize: false
  tables: true
  breaks: true
  smartLists: true
  smartypants: true
  modifyAnchors: ''
  autolink: true
  • gfm - Enables GitHub flavored markdown
  • pedantic - Conform to obscure parts of markdown.pl as much as possible. Don't fix any of the original markdown bugs or poor behavior.
  • sanitize - Sanitize the output. Ignore any HTML that has been input.
  • tables - Enable GFM tables. This option requires the gfm option to be true.
  • breaks - Enable GFM line breaks. This option requires the gfm option to be true.
  • smartLists - Use smarter list behavior than the original markdown.
  • smartypants - Use "smart" typograhic punctuation for things like quotes and dashes.
  • modifyAnchors - Use for transform anchorIds. if 1 to lowerCase and if 2 to upperCase.
  • autolink - Enable autolink for URLs. E.g. https://hexo.io will become <a href="https://hexo.io">https://hexo.io</a>.