mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
544 B
31 lines
544 B
8 years ago
|
/**
|
||
|
* @author Titus Wormer
|
||
|
* @copyright 2015-2016 Titus Wormer
|
||
|
* @license MIT
|
||
|
* @module remark:stringify
|
||
|
* @fileoverview Markdown Compiler.
|
||
|
*/
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
/* eslint-env commonjs */
|
||
|
|
||
|
/* Dependencies. */
|
||
|
var unherit = require('unherit');
|
||
|
var Compiler = require('./lib/compiler.js');
|
||
|
|
||
|
/**
|
||
|
* Attacher.
|
||
|
*
|
||
|
* @param {unified} processor - Unified processor.
|
||
|
*/
|
||
|
function stringify(processor) {
|
||
|
processor.Compiler = unherit(Compiler);
|
||
|
}
|
||
|
|
||
|
/* Patch `Compiler`. */
|
||
|
stringify.Compiler = Compiler;
|
||
|
|
||
|
/* Expose. */
|
||
|
module.exports = stringify;
|