hexo-renderer-markdown-it
Advanced tools
Comparing version
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
var renderer = require('./lib/renderer'); | ||
@@ -2,0 +4,0 @@ var assign = require('object-assign'); |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
var MarkdownIt = require('markdown-it'); | ||
@@ -5,3 +7,3 @@ var assign = require('object-assign'); | ||
module.exports = function (data, options) { | ||
var markConfig = hexo.config.markdown; | ||
var markConfig = this.config.markdown; | ||
var md; | ||
@@ -8,0 +10,0 @@ |
{ | ||
"name": "hexo-renderer-markdown-it", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Markdown-it is a Markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.", | ||
@@ -5,0 +5,0 @@ "main": "index", |
@@ -26,2 +26,4 @@ # hexo-renderer-markdown-it | ||
Please only choose one of the following options. | ||
#### Option 1 - Choose defaults | ||
@@ -60,3 +62,2 @@ | ||
breaks: false | ||
langPrefix: '' | ||
linkify: true | ||
@@ -67,2 +68,9 @@ typographer: true | ||
- **html:** `true || false` If true, the renderer will allow HTML tags inside markdown documents be passed to the resulting document. | ||
- **xhtmlOut:** `true || false` If true, the renderer will export XHTML compatible tags (`<br />` instead of `<br>`). This feature exists only there to ensure [CommonMark] compliance. | ||
- **breaks:** `true || false` Line breaks in the source file will be parsed into `<br>` tags. | ||
- **linkify:** `true || false` Parser returns proper links from links inline with the text. | ||
- **typographer:** `true || false` Enables substitution for common typography elements like © and curly quotes. | ||
- **quotes:** Option that defines the double and single quotes used for substituting dumb quotes if typographer is set to `true`. | ||
[CommonMark]: http://commonmark.org/ | ||
@@ -69,0 +77,0 @@ [Markdown]: http://daringfireball.net/projects/markdown/ |
6525
14.51%32
6.67%77
11.59%