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.
30 lines
511 B
30 lines
511 B
/**
|
|
* @author Titus Wormer
|
|
* @copyright 2015-2016 Titus Wormer
|
|
* @license MIT
|
|
* @module remark:parse
|
|
* @fileoverview Markdown parser.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
/* eslint-env commonjs */
|
|
|
|
/* Dependencies. */
|
|
var unherit = require('unherit');
|
|
var Parser = require('./lib/parser.js');
|
|
|
|
/**
|
|
* Attacher.
|
|
*
|
|
* @param {unified} processor - Unified processor.
|
|
*/
|
|
function parse(processor) {
|
|
processor.Parser = unherit(Parser);
|
|
}
|
|
|
|
/* Patch `Parser`. */
|
|
parse.Parser = Parser;
|
|
|
|
/* Expose */
|
|
module.exports = parse;
|
|
|