|
|
@ -332,8 +332,9 @@ MarkdownIt.prototype.disable = function (list) { |
|
|
|
* .use(require('makkdown-it-emoji')); |
|
|
|
* ``` |
|
|
|
**/ |
|
|
|
MarkdownIt.prototype.use = function (plugin, options) { |
|
|
|
plugin(this, options); |
|
|
|
MarkdownIt.prototype.use = function (plugin /*, options, ... */) { |
|
|
|
var args = [ this ].concat(Array.prototype.slice.call(arguments, 1)); |
|
|
|
plugin.apply(plugin, args); |
|
|
|
return this; |
|
|
|
}; |
|
|
|
|
|
|
|