forked from CHENXCHEN/hexo-renderer-markdown-it-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
21 lines (19 loc) · 740 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* @Author: CHC
* @Date: 2017-07-24T14:14:59+08:00
* @Email: [email protected]
* @Filename: index.js
* @Last modified by: CHC
* @Last modified time: 2017-07-24T14:15:19+08:00
* @License: MIT
* @Copyright: 2017
*/
'use strict';
var renderer = require('./lib/renderer');
hexo.extend.renderer.register('md', 'html', renderer, true);
hexo.extend.renderer.register('markdown', 'html', renderer, true);
hexo.extend.renderer.register('mkd', 'html', renderer, true);
hexo.extend.renderer.register('mkdn', 'html', renderer, true);
hexo.extend.renderer.register('mdwn', 'html', renderer, true);
hexo.extend.renderer.register('mdtxt', 'html', renderer, true);
hexo.extend.renderer.register('mdtext', 'html', renderer, true);