hexo-renderer-marked

Install

npm install hexo-renderer-marked --save

Configuration

GitHub flavored markdown(gfm) を有効にする

_config.ymlに以下を追記

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
marked:
gfm: true
pedantic: false
breaks: true
smartLists: true
smartypants: true
modifyAnchors: 0
autolink: true
sanitizeUrl: false
headerIds: true
prependRoot: false
external_link:
enable: false
exclude: []
nofollow: false

GitHub flavored markdown

gfm - gfm task list items

  • foo
  • bar
  • foo
    • bar
    • baz
  • bim

breaks - gfm line breaks

効いていない……

1
2
Hello  (<-- two spaces)
World

Hello
World

1
2
Hello (<-- one spaces)
World

Hello
World

1
2
Hello (<-- no spaces)
World

Hello
World

autolink

1
https://hexo.io

https://hexo.io

Definition/Description Lists

1
2
3
4
5
6
Definition Term
: This is the definition for the term

Definition Term
: Definition 1
: Definition 2
Definition Term
This is the definition for the term
Definition Term
: Definition 1
Definition 2