forked from remarkjs/remark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
127 changed files
with
9,708 additions
and
10,555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
*.log | ||
node_modules | ||
coverage | ||
remark.js | ||
remark.min.js | ||
/remark.js | ||
/remark.min.js |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
#!/usr/bin/env node | ||
/** | ||
* @author Titus Wormer | ||
* @copyright 2015-2016 Titus Wormer | ||
* @copyright 2015 Titus Wormer | ||
* @license MIT | ||
* @module remark:cli | ||
* @fileoverview CLI to process markdown. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/* eslint-env node */ | ||
|
||
/* Dependencies. */ | ||
var start = require('unified-args'); | ||
var extensions = require('markdown-extensions'); | ||
var processor = require('remark'); | ||
var proc = require('remark/package.json'); | ||
var cli = require('./package.json'); | ||
|
||
/* Start. */ | ||
start({ | ||
'processor': processor, | ||
'name': proc.name, | ||
'description': cli.description, | ||
'version': [ | ||
proc.name + ': ' + proc.version, | ||
cli.name + ': ' + cli.version | ||
].join(', '), | ||
'pluginPrefix': proc.name, | ||
'packageField': proc.name + 'Config', | ||
'rcName': '.' + proc.name + 'rc', | ||
'ignoreName': '.' + proc.name + 'ignore', | ||
'extensions': extensions | ||
processor: processor, | ||
name: proc.name, | ||
description: cli.description, | ||
version: [ | ||
proc.name + ': ' + proc.version, | ||
cli.name + ': ' + cli.version | ||
].join(', '), | ||
pluginPrefix: proc.name, | ||
packageField: proc.name + 'Config', | ||
rcName: '.' + proc.name + 'rc', | ||
ignoreName: '.' + proc.name + 'ignore', | ||
extensions: extensions | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
/** | ||
* @author Titus Wormer | ||
* @copyright 2015-2016 Titus Wormer | ||
* @copyright 2015 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'); | ||
|
||
/* Expose */ | ||
module.exports = exports = parse; | ||
exports.Parser = Parser; | ||
|
||
/** | ||
* Attacher. | ||
* | ||
* @param {unified} processor - Unified processor. | ||
*/ | ||
function parse(processor) { | ||
processor.Parser = unherit(Parser); | ||
processor.Parser = unherit(Parser); | ||
} | ||
|
||
/* Patch `Parser`. */ | ||
parse.Parser = Parser; | ||
|
||
/* Expose */ | ||
module.exports = parse; |
Oops, something went wrong.