Comparing version 0.9.0 to 0.10.0
15
cli.js
@@ -11,2 +11,3 @@ #!/usr/bin/env node | ||
var commander = require('commander'); | ||
var camelcase = require('camelcase'); | ||
var debug = require('debug')('mdast'); | ||
@@ -113,14 +114,2 @@ var mdast = require('./'); | ||
/** | ||
* Transform a dash-cased string to camel-cased. | ||
* | ||
* @param {string} value | ||
* @return {string} | ||
*/ | ||
function camelCase(value) { | ||
return value.toLowerCase().replace(/-([a-z])/gi, function ($0, $1) { | ||
return $1.toUpperCase(); | ||
}); | ||
} | ||
/** | ||
* Parse settings into an object. | ||
@@ -148,3 +137,3 @@ * | ||
cache[camelCase(flag[0])] = value; | ||
cache[camelcase(flag[0])] = value; | ||
}); | ||
@@ -151,0 +140,0 @@ |
807
History.md
0.10.0 / 2015-03-11 | ||
=================== | ||
* Add `test-api-extensive` target ([5c87d0d](https://github.com/wooorm/mdast/commit/5c87d0d)) | ||
* Fix list-item stringification ([57741a7](https://github.com/wooorm/mdast/commit/57741a7)) | ||
* Add `lib/defaults.js` ([47c1dd2](https://github.com/wooorm/mdast/commit/47c1dd2)) | ||
* Add `camelcase` as a dependency for CLI ([2c0cdab](https://github.com/wooorm/mdast/commit/2c0cdab)) | ||
* Update docs with signatures, more info, and style ([cbc41db](https://github.com/wooorm/mdast/commit/cbc41db)) | ||
* Refactor `test/index.js` ([29da868](https://github.com/wooorm/mdast/commit/29da868)) | ||
* Fix `test-api` script ([7f455d7](https://github.com/wooorm/mdast/commit/7f455d7)) | ||
* Update eslint ([4ab1b29](https://github.com/wooorm/mdast/commit/4ab1b29)) | ||
* Remove mdast dependency ([4de3846](https://github.com/wooorm/mdast/commit/4de3846)) | ||
* Refactor wording in `Readme.md` ([6e9f218](https://github.com/wooorm/mdast/commit/6e9f218)) | ||
* Update benchmark and benchmark results ([850c534](https://github.com/wooorm/mdast/commit/850c534)) | ||
0.9.0 / 2015-03-07 | ||
================== | ||
* Update mdast dependency (6b1bd06) | ||
* Update eslint (bd30d2e) | ||
* Update chalk (aea84ed) | ||
* Update browser build (7a8485e) | ||
* Fix link parsing/stringification support (05d25f0) | ||
* Refactor escape, entity, inline code support (e15f43c) | ||
* Fix blockquote, paragraph support (089ca44) | ||
* Update mdast dependency ([6b1bd06](https://github.com/wooorm/mdast/commit/6b1bd06)) | ||
* Update eslint ([bd30d2e](https://github.com/wooorm/mdast/commit/bd30d2e)) | ||
* Update chalk ([aea84ed](https://github.com/wooorm/mdast/commit/aea84ed)) | ||
* Update browser build ([7a8485e](https://github.com/wooorm/mdast/commit/7a8485e)) | ||
* Fix link parsing/stringification support ([05d25f0](https://github.com/wooorm/mdast/commit/05d25f0)) | ||
* Refactor escape, entity, inline code support ([e15f43c](https://github.com/wooorm/mdast/commit/e15f43c)) | ||
* Fix blockquote, paragraph support ([089ca44](https://github.com/wooorm/mdast/commit/089ca44)) | ||
@@ -16,3 +31,3 @@ 0.8.0 / 2015-02-27 | ||
* Fix reference link support (3a7e5c6) | ||
* Fix reference link support ([3a7e5c6](https://github.com/wooorm/mdast/commit/3a7e5c6)) | ||
@@ -22,6 +37,6 @@ 0.7.0 / 2015-02-25 | ||
* Fix fenced code block support (66a763a) | ||
* Add support for blank lines (ad61b1e) | ||
* Fix Setext heading support (27c4a3b) | ||
* Fix ATX heading support (0568582) | ||
* Fix fenced code block support ([66a763a](https://github.com/wooorm/mdast/commit/66a763a)) | ||
* Add support for blank lines ([ad61b1e](https://github.com/wooorm/mdast/commit/ad61b1e)) | ||
* Fix Setext heading support ([27c4a3b](https://github.com/wooorm/mdast/commit/27c4a3b)) | ||
* Fix ATX heading support ([0568582](https://github.com/wooorm/mdast/commit/0568582)) | ||
@@ -31,6 +46,6 @@ 0.6.0 / 2015-02-23 | ||
* Refactor code style in `lib/expressions.js` (1d84c60) | ||
* Add CommonMark paragraph parsing (2dda62f) | ||
* Add iojs, node 0.12 to travis (465d2fc) | ||
* Update browserify (965592d) | ||
* Refactor code style in `lib/expressions.js` ([1d84c60](https://github.com/wooorm/mdast/commit/1d84c60)) | ||
* Add CommonMark paragraph parsing ([2dda62f](https://github.com/wooorm/mdast/commit/2dda62f)) | ||
* Add iojs, node 0.12 to travis ([465d2fc](https://github.com/wooorm/mdast/commit/465d2fc)) | ||
* Update browserify ([965592d](https://github.com/wooorm/mdast/commit/965592d)) | ||
@@ -40,9 +55,9 @@ 0.5.3 / 2015-02-20 | ||
* Add `AUTHORS` (bd40fcf) | ||
* Fix default value for `fence` in `Readme.md` (1545df1) | ||
* Add more verbose project description (30b7490) | ||
* Remove double space in example (fce6485) | ||
* Refactor `History.md` (b3b86ee) | ||
* Fix bug with tabs following code block fences (dfc3432) | ||
* Update mdast dependency (e6d9d9d) | ||
* Add `AUTHORS` ([bd40fcf](https://github.com/wooorm/mdast/commit/bd40fcf)) | ||
* Fix default value for `fence` in `Readme.md` ([1545df1](https://github.com/wooorm/mdast/commit/1545df1)) | ||
* Add more verbose project description ([30b7490](https://github.com/wooorm/mdast/commit/30b7490)) | ||
* Remove double space in example ([fce6485](https://github.com/wooorm/mdast/commit/fce6485)) | ||
* Refactor `History.md` ([b3b86ee](https://github.com/wooorm/mdast/commit/b3b86ee)) | ||
* Fix bug with tabs following code block fences ([dfc3432](https://github.com/wooorm/mdast/commit/dfc3432)) | ||
* Update mdast dependency ([e6d9d9d](https://github.com/wooorm/mdast/commit/e6d9d9d)) | ||
@@ -52,3 +67,3 @@ 0.5.2 / 2015-02-19 | ||
* Refactor to improve performance on repeated character (196ef1d) | ||
* Refactor to improve performance on repeated character ([196ef1d](https://github.com/wooorm/mdast/commit/196ef1d)) | ||
@@ -58,6 +73,6 @@ 0.5.1 / 2015-02-19 | ||
* Remove ATX headers when not followed by white space (1baa543) | ||
* Fix miscellaneous emphasis issues (3666c78) | ||
* Fix empty list-item from throwing (d7793ac) | ||
* Fix miscellaneous horizontal rule issues (0a6a783) | ||
* Remove ATX headers when not followed by white space ([1baa543](https://github.com/wooorm/mdast/commit/1baa543)) | ||
* Fix miscellaneous emphasis issues ([3666c78](https://github.com/wooorm/mdast/commit/3666c78)) | ||
* Fix empty list-item from throwing ([d7793ac](https://github.com/wooorm/mdast/commit/d7793ac)) | ||
* Fix miscellaneous horizontal rule issues ([0a6a783](https://github.com/wooorm/mdast/commit/0a6a783)) | ||
@@ -67,3 +82,3 @@ 0.5.0 / 2015-02-17 | ||
* Add tab support (a051f84) | ||
* Add tab support ([a051f84](https://github.com/wooorm/mdast/commit/a051f84)) | ||
@@ -73,4 +88,4 @@ 0.4.1 / 2015-02-15 | ||
* Update mdast dependency (c5c3c37) | ||
* Add mdast as third argument to plug-ins (00a9b9f) | ||
* Update mdast dependency ([c5c3c37](https://github.com/wooorm/mdast/commit/c5c3c37)) | ||
* Add mdast as third argument to plug-ins ([00a9b9f](https://github.com/wooorm/mdast/commit/00a9b9f)) | ||
@@ -80,10 +95,10 @@ 0.4.0 / 2015-02-15 | ||
* Refactor module to use more constants instead of literal strings (1163134) | ||
* Remove ensured new line at end of file (f4f0cc9) | ||
* Refactor istanbul ignore, error message (4c4e172) | ||
* Remove support for `referenceFootnotes: false` (ed8416e) | ||
* Add `lib/expressions.js` with precompiled expressions (d8fe197) | ||
* Refactor module (7c45751) | ||
* Add support for escaped pipes in table cells (b7a3f69) | ||
* Fix bug in node@0.10 re invalid error exit code (c557bc6) | ||
* Refactor module to use more constants instead of literal strings ([1163134](https://github.com/wooorm/mdast/commit/1163134)) | ||
* Remove ensured new line at end of file ([f4f0cc9](https://github.com/wooorm/mdast/commit/f4f0cc9)) | ||
* Refactor istanbul ignore, error message ([4c4e172](https://github.com/wooorm/mdast/commit/4c4e172)) | ||
* Remove support for `referenceFootnotes: false` ([ed8416e](https://github.com/wooorm/mdast/commit/ed8416e)) | ||
* Add `lib/expressions.js` with precompiled expressions ([d8fe197](https://github.com/wooorm/mdast/commit/d8fe197)) | ||
* Refactor module ([7c45751](https://github.com/wooorm/mdast/commit/7c45751)) | ||
* Add support for escaped pipes in table cells ([b7a3f69](https://github.com/wooorm/mdast/commit/b7a3f69)) | ||
* Fix bug in node@0.10 re invalid error exit code ([c557bc6](https://github.com/wooorm/mdast/commit/c557bc6)) | ||
@@ -93,22 +108,22 @@ 0.3.0 / 2015-02-08 | ||
* Add man docs for mdast(1) (f44182a) | ||
* Refactor cli to use commander (1a108e2) | ||
* Refactor to simplify options validation (da6ae75) | ||
* Add support for YAML front matter (a09fbe8) | ||
* Update mdast, eslint as dev-dependencies (d14f27e) | ||
* Replace file name underscores with dashes in `test/` (efde50f) | ||
* Fix option casing in `cli.js` (b244333) | ||
* Merge branch 'feature/stringification/prefer-spaced-tables' (3baffd4) | ||
* Add docs for `options.spacedTable` (ce680c0) | ||
* Add support for `spacedTable` (a726982) | ||
* Add tests for incorrect `spacedTable` option (39bd79a) | ||
* Add fixtures for spaced table style (67a4488) | ||
* Merge branch 'feature/stringification/prefer-loose-tables' (a12ab6c) | ||
* Add docs for `options.looseTable` (1d9dc58) | ||
* Add support for `looseTable` (bd9d35c) | ||
* Add tests for incorrect `looseTable` option (ad72c72) | ||
* Add fixtures for loose table style (ee925bc) | ||
* Add auto inferring of input file if an output file is provided (3b3b799) | ||
* Add `fence` parse option to `Readme.md` (0c41167) | ||
* Add `example.js` to `.npmignore`, `bower.json` ignore (3f565e4) | ||
* Add man docs for mdast(1) ([f44182a](https://github.com/wooorm/mdast/commit/f44182a)) | ||
* Refactor cli to use commander ([1a108e2](https://github.com/wooorm/mdast/commit/1a108e2)) | ||
* Refactor to simplify options validation ([da6ae75](https://github.com/wooorm/mdast/commit/da6ae75)) | ||
* Add support for YAML front matter ([a09fbe8](https://github.com/wooorm/mdast/commit/a09fbe8)) | ||
* Update mdast, eslint as dev-dependencies ([d14f27e](https://github.com/wooorm/mdast/commit/d14f27e)) | ||
* Replace file name underscores with dashes in `test/` ([efde50f](https://github.com/wooorm/mdast/commit/efde50f)) | ||
* Fix option casing in `cli.js` ([b244333](https://github.com/wooorm/mdast/commit/b244333)) | ||
* Merge branch 'feature/stringification/prefer-spaced-tables' ([3baffd4](https://github.com/wooorm/mdast/commit/3baffd4)) | ||
* Add docs for `options.spacedTable` ([ce680c0](https://github.com/wooorm/mdast/commit/ce680c0)) | ||
* Add support for `spacedTable` ([a726982](https://github.com/wooorm/mdast/commit/a726982)) | ||
* Add tests for incorrect `spacedTable` option ([39bd79a](https://github.com/wooorm/mdast/commit/39bd79a)) | ||
* Add fixtures for spaced table style ([67a4488](https://github.com/wooorm/mdast/commit/67a4488)) | ||
* Merge branch 'feature/stringification/prefer-loose-tables' ([a12ab6c](https://github.com/wooorm/mdast/commit/a12ab6c)) | ||
* Add docs for `options.looseTable` ([1d9dc58](https://github.com/wooorm/mdast/commit/1d9dc58)) | ||
* Add support for `looseTable` ([bd9d35c](https://github.com/wooorm/mdast/commit/bd9d35c)) | ||
* Add tests for incorrect `looseTable` option ([ad72c72](https://github.com/wooorm/mdast/commit/ad72c72)) | ||
* Add fixtures for loose table style ([ee925bc](https://github.com/wooorm/mdast/commit/ee925bc)) | ||
* Add auto inferring of input file if an output file is provided ([3b3b799](https://github.com/wooorm/mdast/commit/3b3b799)) | ||
* Add `fence` parse option to `Readme.md` ([0c41167](https://github.com/wooorm/mdast/commit/0c41167)) | ||
* Add `example.js` to `.npmignore`, `bower.json` ignore ([3f565e4](https://github.com/wooorm/mdast/commit/3f565e4)) | ||
@@ -118,14 +133,14 @@ 0.2.0 / 2015-02-02 | ||
* Fix `mdast.js` (94aaf42) | ||
* Merge branch 'feature/add-line-and-column-position' (cafbe3d) | ||
* Add `position` objects to nodes (83c10ae) | ||
* Add `trimRightLines` function to `lib/utilities.js` (8699992) | ||
* Add `build-usage` task to render `example.js` to `Readme.md` (9018c02) | ||
* Add `example.js` to lint tasks (2996cee) | ||
* Add `example.js` (a9630a1) | ||
* Remove `requireMultipleVarDecl` rule from `.jscs.json` (0c3be65) | ||
* Add `mdast`, `mdast-usage` as dev-dependencies (0447038) | ||
* Fix markdown formatting in `History.md` by using `mdast` (d56e481) | ||
* Fix markdown formatting in `Readme.md` by using `mdast` (e56f8ef) | ||
* Fix build (7bc61e3) | ||
* Fix `mdast.js` ([94aaf42](https://github.com/wooorm/mdast/commit/94aaf42)) | ||
* Merge branch 'feature/add-line-and-column-position' ([cafbe3d](https://github.com/wooorm/mdast/commit/cafbe3d)) | ||
* Add `position` objects to nodes ([83c10ae](https://github.com/wooorm/mdast/commit/83c10ae)) | ||
* Add `trimRightLines` function to `lib/utilities.js` ([8699992](https://github.com/wooorm/mdast/commit/8699992)) | ||
* Add `build-usage` task to render `example.js` to `Readme.md` ([9018c02](https://github.com/wooorm/mdast/commit/9018c02)) | ||
* Add `example.js` to lint tasks ([2996cee](https://github.com/wooorm/mdast/commit/2996cee)) | ||
* Add `example.js` ([a9630a1](https://github.com/wooorm/mdast/commit/a9630a1)) | ||
* Remove `requireMultipleVarDecl` rule from `.jscs.json` ([0c3be65](https://github.com/wooorm/mdast/commit/0c3be65)) | ||
* Add `mdast`, `mdast-usage` as dev-dependencies ([0447038](https://github.com/wooorm/mdast/commit/0447038)) | ||
* Fix markdown formatting in `History.md` by using `mdast` ([d56e481](https://github.com/wooorm/mdast/commit/d56e481)) | ||
* Fix markdown formatting in `Readme.md` by using `mdast` ([e56f8ef](https://github.com/wooorm/mdast/commit/e56f8ef)) | ||
* Fix build ([7bc61e3](https://github.com/wooorm/mdast/commit/7bc61e3)) | ||
@@ -135,5 +150,5 @@ 0.1.12 / 2015-01-26 | ||
* Add test for throwing on errors in plug-ins (160c8d1) | ||
* Add throwing on errors in plug-ins (b8fb34f) | ||
* Update eslint (45d874e) | ||
* Add test for throwing on errors in plug-ins ([160c8d1](https://github.com/wooorm/mdast/commit/160c8d1)) | ||
* Add throwing on errors in plug-ins ([b8fb34f](https://github.com/wooorm/mdast/commit/b8fb34f)) | ||
* Update eslint ([45d874e](https://github.com/wooorm/mdast/commit/45d874e)) | ||
@@ -143,13 +158,13 @@ 0.1.11 / 2015-01-25 | ||
* Remove `backpedal` from `tokenizeBlock` in `lib/parse.js` (04a7327) | ||
* Merge branch 'feature/simplify-escapes' (9202130) | ||
* Add support for `escape` node (28f449d) | ||
* Fix fixtures for new escape node (fb4c1ef) | ||
* Add new `escape` node to `doc/Nodes.md` (afc1fce) | ||
* Add test support for new `escape` node (31bdc03) | ||
* Add docs for `--output`, `-o` CLI flags to `Readme.md` (86bccfd) | ||
* Add `--output`, `-o` CLI flags (c21a99d) | ||
* Add tests for `--output` CLI flag (8f1f3b1) | ||
* Add docs for `mdast.use()` to `Readme.md` (683adf6) | ||
* Add `build.js` to `.gitignore`, `.npmignore`, `bower.json` ignore (6ee164d) | ||
* Remove `backpedal` from `tokenizeBlock` in `lib/parse.js` ([04a7327](https://github.com/wooorm/mdast/commit/04a7327)) | ||
* Merge branch 'feature/simplify-escapes' ([9202130](https://github.com/wooorm/mdast/commit/9202130)) | ||
* Add support for `escape` node ([28f449d](https://github.com/wooorm/mdast/commit/28f449d)) | ||
* Fix fixtures for new escape node ([fb4c1ef](https://github.com/wooorm/mdast/commit/fb4c1ef)) | ||
* Add new `escape` node to `doc/Nodes.md` ([afc1fce](https://github.com/wooorm/mdast/commit/afc1fce)) | ||
* Add test support for new `escape` node ([31bdc03](https://github.com/wooorm/mdast/commit/31bdc03)) | ||
* Add docs for `--output`, `-o` CLI flags to `Readme.md` ([86bccfd](https://github.com/wooorm/mdast/commit/86bccfd)) | ||
* Add `--output`, `-o` CLI flags ([c21a99d](https://github.com/wooorm/mdast/commit/c21a99d)) | ||
* Add tests for `--output` CLI flag ([8f1f3b1](https://github.com/wooorm/mdast/commit/8f1f3b1)) | ||
* Add docs for `mdast.use()` to `Readme.md` ([683adf6](https://github.com/wooorm/mdast/commit/683adf6)) | ||
* Add `build.js` to `.gitignore`, `.npmignore`, `bower.json` ignore ([6ee164d](https://github.com/wooorm/mdast/commit/6ee164d)) | ||
@@ -159,8 +174,8 @@ 0.1.10 / 2015-01-24 | ||
* Update build (22794c2) | ||
* Merge branch 'bug/fix-linked-image' (146c5d0) | ||
* Add fixtures for links, images in links (cbc572e) | ||
* Add check to inline tokenizer if a match is eaten (95a3831) | ||
* Add link check to nested image/links (19dd972) | ||
* Fix typo in `Readme.md` (eb7df0b) | ||
* Update build ([22794c2](https://github.com/wooorm/mdast/commit/22794c2)) | ||
* Merge branch 'bug/fix-linked-image' ([146c5d0](https://github.com/wooorm/mdast/commit/146c5d0)) | ||
* Add fixtures for links, images in links ([cbc572e](https://github.com/wooorm/mdast/commit/cbc572e)) | ||
* Add check to inline tokenizer if a match is eaten ([95a3831](https://github.com/wooorm/mdast/commit/95a3831)) | ||
* Add link check to nested image/links ([19dd972](https://github.com/wooorm/mdast/commit/19dd972)) | ||
* Fix typo in `Readme.md` ([eb7df0b](https://github.com/wooorm/mdast/commit/eb7df0b)) | ||
@@ -170,13 +185,13 @@ 0.1.9 / 2015-01-24 | ||
* Add UMD as an installation method in `Readme.md` (5aec802) | ||
* Add `index.js`, `lib/` to bower ignore (82c15ee) | ||
* Remove bower dependencies due to UMD build (d2042cf) | ||
* Add `mdast.js` to bowers `main` instead of `index.js` (23f2cf4) | ||
* Add `mdast.js`, `mdast.min.js` (47dc79a) | ||
* Add `mdast.js`, `mdast.min.js` to `.npmignore` (702a196) | ||
* Add `postbuild-bundle` npm script target to compress module (5036ee5) | ||
* Add `bundle` npm script target to browserify module (cf7fb28) | ||
* Add esmangle as a dev-dependency (8d522f8) | ||
* Add browserify as a dev-dependency (17f33b2) | ||
* Fix bug in node@0.10 re require error exit code (da7590c) | ||
* Add UMD as an installation method in `Readme.md` ([5aec802](https://github.com/wooorm/mdast/commit/5aec802)) | ||
* Add `index.js`, `lib/` to bower ignore ([82c15ee](https://github.com/wooorm/mdast/commit/82c15ee)) | ||
* Remove bower dependencies due to UMD build ([d2042cf](https://github.com/wooorm/mdast/commit/d2042cf)) | ||
* Add `mdast.js` to bowers `main` instead of `index.js` ([23f2cf4](https://github.com/wooorm/mdast/commit/23f2cf4)) | ||
* Add `mdast.js`, `mdast.min.js` ([47dc79a](https://github.com/wooorm/mdast/commit/47dc79a)) | ||
* Add `mdast.js`, `mdast.min.js` to `.npmignore` ([702a196](https://github.com/wooorm/mdast/commit/702a196)) | ||
* Add `postbuild-bundle` npm script target to compress module ([5036ee5](https://github.com/wooorm/mdast/commit/5036ee5)) | ||
* Add `bundle` npm script target to browserify module ([cf7fb28](https://github.com/wooorm/mdast/commit/cf7fb28)) | ||
* Add esmangle as a dev-dependency ([8d522f8](https://github.com/wooorm/mdast/commit/8d522f8)) | ||
* Add browserify as a dev-dependency ([17f33b2](https://github.com/wooorm/mdast/commit/17f33b2)) | ||
* Fix bug in node@0.10 re require error exit code ([da7590c](https://github.com/wooorm/mdast/commit/da7590c)) | ||
@@ -186,14 +201,14 @@ 0.1.8 / 2015-01-21 | ||
* Add missing `lib/utilities.js` to `component.json` (b6d3ff7) | ||
* Merge branch 'feature/add-plugin-support' (e4dc8c3) | ||
* Add assertions for plugins to `test/cli.sh` (e3486d5) | ||
* Add failure on invalid plugin to cli (e15aa0a) | ||
* Add assertions for plugins to `test/index.js` (200872c) | ||
* Rename `ware` internally from `parser` to `ware` (1e9c43f) | ||
* Add cli plugin usage to `Readme.md` (8f3c0ce) | ||
* Add plugin support to cli (6532998) | ||
* Fix plugin implementation (729796e) | ||
* Add example plugin to `test/plugin.js` (224f59f) | ||
* Add initial draft of plugin implementation (5b38ca2) | ||
* Add ware as a dependency (5fd5a2b) | ||
* Add missing `lib/utilities.js` to `component.json` ([b6d3ff7](https://github.com/wooorm/mdast/commit/b6d3ff7)) | ||
* Merge branch 'feature/add-plugin-support' ([e4dc8c3](https://github.com/wooorm/mdast/commit/e4dc8c3)) | ||
* Add assertions for plugins to `test/cli.sh` ([e3486d5](https://github.com/wooorm/mdast/commit/e3486d5)) | ||
* Add failure on invalid plugin to cli ([e15aa0a](https://github.com/wooorm/mdast/commit/e15aa0a)) | ||
* Add assertions for plugins to `test/index.js` ([200872c](https://github.com/wooorm/mdast/commit/200872c)) | ||
* Rename `ware` internally from `parser` to `ware` ([1e9c43f](https://github.com/wooorm/mdast/commit/1e9c43f)) | ||
* Add cli plugin usage to `Readme.md` ([8f3c0ce](https://github.com/wooorm/mdast/commit/8f3c0ce)) | ||
* Add plugin support to cli ([6532998](https://github.com/wooorm/mdast/commit/6532998)) | ||
* Fix plugin implementation ([729796e](https://github.com/wooorm/mdast/commit/729796e)) | ||
* Add example plugin to `test/plugin.js` ([224f59f](https://github.com/wooorm/mdast/commit/224f59f)) | ||
* Add initial draft of plugin implementation ([5b38ca2](https://github.com/wooorm/mdast/commit/5b38ca2)) | ||
* Add ware as a dependency ([5fd5a2b](https://github.com/wooorm/mdast/commit/5fd5a2b)) | ||
@@ -203,29 +218,29 @@ 0.1.7 / 2015-01-20 | ||
* Update copyright notice in `LICENSE` to include 2015 (a85ad95) | ||
* Refactor license in `Readme.md` (bd94033) | ||
* Add link to whole license in `Readme.md` (1667d67) | ||
* Refactor fences code blocks in `Readme.md` (4d20047) | ||
* Update npm script targets in `package.json` (84d33fb) | ||
* Update eslint (05ec0e0) | ||
* Fix incorrect links in documentation (668df9e) | ||
* Update `doc/Options.md` with footnote definitions (da48b7e) | ||
* Merge branch 'feature/footnote-definition-node' (9646dc5) | ||
* Update `lib/stringify.js` to compile footnote definitions (a14614a) | ||
* Update `lib/parse.js` to expose footnote definitions (d8aac89) | ||
* Update `test/index.js` to validate footnote definition (66392a0) | ||
* Update fixtures for footnote definition (157f782) | ||
* Add docs for footnote definition to `doc/Nodes.md` (c0b2866) | ||
* Merge branch 'feature/empty-fenced-code-blocks' (67e1b49) | ||
* Add stringification as fenced code blocks when missing value and language (1afc355) | ||
* Add support for missing `value` in `renderCodeBlock` (a333b09) | ||
* Fix expression for empty fenced code blocks (9010b89) | ||
* Add fixtures for empty fences code blocks (add4e84) | ||
* Add `options.closeAtx` to `Readme.md` (ad3398e) | ||
* Merge branch 'feature/stringification/escape-less-dashes' (6106814) | ||
* Remove extraneous escapes on invalid list bullets (d1f78ee) | ||
* Merge branch 'feature/stringification/prefer-closed-atx' (f0d22d6) | ||
* Add docs for `options.closeAtx` (e6859cb) | ||
* Add support for `closeAtx` (8f3fd26) | ||
* Add tests for incorrect `closeAtx` options (92e7d34) | ||
* Add fixtures for closed ATX styles (50ed9d6) | ||
* Update copyright notice in `LICENSE` to include 2015 ([a85ad95](https://github.com/wooorm/mdast/commit/a85ad95)) | ||
* Refactor license in `Readme.md` ([bd94033](https://github.com/wooorm/mdast/commit/bd94033)) | ||
* Add link to whole license in `Readme.md` ([1667d67](https://github.com/wooorm/mdast/commit/1667d67)) | ||
* Refactor fences code blocks in `Readme.md` ([4d20047](https://github.com/wooorm/mdast/commit/4d20047)) | ||
* Update npm script targets in `package.json` ([84d33fb](https://github.com/wooorm/mdast/commit/84d33fb)) | ||
* Update eslint ([05ec0e0](https://github.com/wooorm/mdast/commit/05ec0e0)) | ||
* Fix incorrect links in documentation ([668df9e](https://github.com/wooorm/mdast/commit/668df9e)) | ||
* Update `doc/Options.md` with footnote definitions ([da48b7e](https://github.com/wooorm/mdast/commit/da48b7e)) | ||
* Merge branch 'feature/footnote-definition-node' ([9646dc5](https://github.com/wooorm/mdast/commit/9646dc5)) | ||
* Update `lib/stringify.js` to compile footnote definitions ([a14614a](https://github.com/wooorm/mdast/commit/a14614a)) | ||
* Update `lib/parse.js` to expose footnote definitions ([d8aac89](https://github.com/wooorm/mdast/commit/d8aac89)) | ||
* Update `test/index.js` to validate footnote definition ([66392a0](https://github.com/wooorm/mdast/commit/66392a0)) | ||
* Update fixtures for footnote definition ([157f782](https://github.com/wooorm/mdast/commit/157f782)) | ||
* Add docs for footnote definition to `doc/Nodes.md` ([c0b2866](https://github.com/wooorm/mdast/commit/c0b2866)) | ||
* Merge branch 'feature/empty-fenced-code-blocks' ([67e1b49](https://github.com/wooorm/mdast/commit/67e1b49)) | ||
* Add stringification as fenced code blocks when missing value and language ([1afc355](https://github.com/wooorm/mdast/commit/1afc355)) | ||
* Add support for missing `value` in `renderCodeBlock` ([a333b09](https://github.com/wooorm/mdast/commit/a333b09)) | ||
* Fix expression for empty fenced code blocks ([9010b89](https://github.com/wooorm/mdast/commit/9010b89)) | ||
* Add fixtures for empty fences code blocks ([add4e84](https://github.com/wooorm/mdast/commit/add4e84)) | ||
* Add `options.closeAtx` to `Readme.md` ([ad3398e](https://github.com/wooorm/mdast/commit/ad3398e)) | ||
* Merge branch 'feature/stringification/escape-less-dashes' ([6106814](https://github.com/wooorm/mdast/commit/6106814)) | ||
* Remove extraneous escapes on invalid list bullets ([d1f78ee](https://github.com/wooorm/mdast/commit/d1f78ee)) | ||
* Merge branch 'feature/stringification/prefer-closed-atx' ([f0d22d6](https://github.com/wooorm/mdast/commit/f0d22d6)) | ||
* Add docs for `options.closeAtx` ([e6859cb](https://github.com/wooorm/mdast/commit/e6859cb)) | ||
* Add support for `closeAtx` ([8f3fd26](https://github.com/wooorm/mdast/commit/8f3fd26)) | ||
* Add tests for incorrect `closeAtx` options ([92e7d34](https://github.com/wooorm/mdast/commit/92e7d34)) | ||
* Add fixtures for closed ATX styles ([50ed9d6](https://github.com/wooorm/mdast/commit/50ed9d6)) | ||
@@ -235,42 +250,42 @@ 0.1.6 / 2015-01-13 | ||
* Add missing jsdoc comments to `test/index.js` (a748d14) | ||
* Add custom compiler to `mdast.stringify()` (85e22a5) | ||
* Add custom parser to `mdast.parse()` (c5c6289) | ||
* Add test for custom compiler to `mdast.stringify()` (be21cc3) | ||
* Add test for custom parser to `mdast.parse()` (38f1f3e) | ||
* Add exposure of `Compiler` on `mdast.stringify` (9ef9390) | ||
* Add exposure of `Parser` on `mdast.parse` (f0af4ae) | ||
* Merge branch 'feature/add-line-and-column-position' (556b9d2) | ||
* Add duo to install methods (b813f24) | ||
* Add links to install methods to `Readme.md` (5da914a) | ||
* Add standardised state methods (8d4db87) | ||
* Remove description of `gfm` parse option being better at paragraphs (d40ad60) | ||
* Add better description to `pedantic` parse option (8436c3d) | ||
* Refactor `lib/parse.js` (9cfe84b) | ||
* Refactor `lib/parse.js` to merge `BlockLexer`, `InlineLexer`, `Parser` (d796675) | ||
* Refactor to prepare `Parser` to tokenise with less context (f4e581e) | ||
* Refactor to prepare `BlockLexer` to tokenise with less context (5eb610b) | ||
* Refactor to construct `InlineLexer` when constructing `Parser` (c5064cc) | ||
* Add shared lexer info to new `shared` object in `lib/parse.js` (8546d30) | ||
* Remove `footnote` property on `root` when `footnotes: false` (bee0d12) | ||
* Rename `Lexer` to `BlockLexer` in `lib/parse.js` (8cf2a7d) | ||
* Remove `Parser.parse` method in `lib/parse.js` (4e18216) | ||
* Remove `top` parameter for block-level tokenizers (7cffcda) | ||
* Add `trimLeft` and `trimRight` to `lib/utilities` (6d72af3) | ||
* Refactor `InlineLexer` in `lib/parse.js` (c9082f1) | ||
* Refactor Lexer in `lib/parse.js` (9c10dbc) | ||
* Remove `footnote-` prefix from generated footnote IDs (3139523) | ||
* Merge branch 'master' into feature/add-line-and-column-position (8aa8afc) | ||
* Merge branch 'feature/stringification/preferred-code-fence-style' (36c9885) | ||
* Remove `markdown` language tag from code-fences to fix GitHub (8a9e73d) | ||
* Add example for `options.fence` (8f00d1b) | ||
* Add support for preferred code fence markers (2090588) | ||
* Fix missing comma (b7b25b3) | ||
* Add fixture for code fence markers (fd4ac34) | ||
* Add test for incorrect code fence marker (7c8d780) | ||
* Add better handling of incorrect parse options (91c2a53) | ||
* Add copy to stringification settings in (c9ad382) | ||
* Move `raise` method to `lib/utilities.js` (65b7832) | ||
* Add missing jsdoc comments to `test/index.js` ([a748d14](https://github.com/wooorm/mdast/commit/a748d14)) | ||
* Add custom compiler to `mdast.stringify()` ([85e22a5](https://github.com/wooorm/mdast/commit/85e22a5)) | ||
* Add custom parser to `mdast.parse()` ([c5c6289](https://github.com/wooorm/mdast/commit/c5c6289)) | ||
* Add test for custom compiler to `mdast.stringify()` ([be21cc3](https://github.com/wooorm/mdast/commit/be21cc3)) | ||
* Add test for custom parser to `mdast.parse()` ([38f1f3e](https://github.com/wooorm/mdast/commit/38f1f3e)) | ||
* Add exposure of `Compiler` on `mdast.stringify` ([9ef9390](https://github.com/wooorm/mdast/commit/9ef9390)) | ||
* Add exposure of `Parser` on `mdast.parse` ([f0af4ae](https://github.com/wooorm/mdast/commit/f0af4ae)) | ||
* Merge branch 'feature/add-line-and-column-position' ([556b9d2](https://github.com/wooorm/mdast/commit/556b9d2)) | ||
* Add duo to install methods ([b813f24](https://github.com/wooorm/mdast/commit/b813f24)) | ||
* Add links to install methods to `Readme.md` ([5da914a](https://github.com/wooorm/mdast/commit/5da914a)) | ||
* Add standardised state methods ([8d4db87](https://github.com/wooorm/mdast/commit/8d4db87)) | ||
* Remove description of `gfm` parse option being better at paragraphs ([d40ad60](https://github.com/wooorm/mdast/commit/d40ad60)) | ||
* Add better description to `pedantic` parse option ([8436c3d](https://github.com/wooorm/mdast/commit/8436c3d)) | ||
* Refactor `lib/parse.js` ([9cfe84b](https://github.com/wooorm/mdast/commit/9cfe84b)) | ||
* Refactor `lib/parse.js` to merge `BlockLexer`, `InlineLexer`, `Parser` ([d796675](https://github.com/wooorm/mdast/commit/d796675)) | ||
* Refactor to prepare `Parser` to tokenise with less context ([f4e581e](https://github.com/wooorm/mdast/commit/f4e581e)) | ||
* Refactor to prepare `BlockLexer` to tokenise with less context ([5eb610b](https://github.com/wooorm/mdast/commit/5eb610b)) | ||
* Refactor to construct `InlineLexer` when constructing `Parser` ([c5064cc](https://github.com/wooorm/mdast/commit/c5064cc)) | ||
* Add shared lexer info to new `shared` object in `lib/parse.js` ([8546d30](https://github.com/wooorm/mdast/commit/8546d30)) | ||
* Remove `footnote` property on `root` when `footnotes: false` ([bee0d12](https://github.com/wooorm/mdast/commit/bee0d12)) | ||
* Rename `Lexer` to `BlockLexer` in `lib/parse.js` ([8cf2a7d](https://github.com/wooorm/mdast/commit/8cf2a7d)) | ||
* Remove `Parser.parse` method in `lib/parse.js` ([4e18216](https://github.com/wooorm/mdast/commit/4e18216)) | ||
* Remove `top` parameter for block-level tokenizers ([7cffcda](https://github.com/wooorm/mdast/commit/7cffcda)) | ||
* Add `trimLeft` and `trimRight` to `lib/utilities` ([6d72af3](https://github.com/wooorm/mdast/commit/6d72af3)) | ||
* Refactor `InlineLexer` in `lib/parse.js` ([c9082f1](https://github.com/wooorm/mdast/commit/c9082f1)) | ||
* Refactor Lexer in `lib/parse.js` ([9c10dbc](https://github.com/wooorm/mdast/commit/9c10dbc)) | ||
* Remove `footnote-` prefix from generated footnote IDs ([3139523](https://github.com/wooorm/mdast/commit/3139523)) | ||
* Merge branch 'master' into feature/add-line-and-column-position ([8aa8afc](https://github.com/wooorm/mdast/commit/8aa8afc)) | ||
* Merge branch 'feature/stringification/preferred-code-fence-style' ([36c9885](https://github.com/wooorm/mdast/commit/36c9885)) | ||
* Remove `markdown` language tag from code-fences to fix GitHub ([8a9e73d](https://github.com/wooorm/mdast/commit/8a9e73d)) | ||
* Add example for `options.fence` ([8f00d1b](https://github.com/wooorm/mdast/commit/8f00d1b)) | ||
* Add support for preferred code fence markers ([2090588](https://github.com/wooorm/mdast/commit/2090588)) | ||
* Fix missing comma ([b7b25b3](https://github.com/wooorm/mdast/commit/b7b25b3)) | ||
* Add fixture for code fence markers ([fd4ac34](https://github.com/wooorm/mdast/commit/fd4ac34)) | ||
* Add test for incorrect code fence marker ([7c8d780](https://github.com/wooorm/mdast/commit/7c8d780)) | ||
* Add better handling of incorrect parse options ([91c2a53](https://github.com/wooorm/mdast/commit/91c2a53)) | ||
* Add copy to stringification settings in ([c9ad382](https://github.com/wooorm/mdast/commit/c9ad382)) | ||
* Move `raise` method to `lib/utilities.js` ([65b7832](https://github.com/wooorm/mdast/commit/65b7832)) | ||
* - Refactor lots of regular expressions to be simpler | ||
* Add error when stringifying unknown nodes (8114e8e) | ||
* Add error when stringifying unknown nodes ([8114e8e](https://github.com/wooorm/mdast/commit/8114e8e)) | ||
@@ -280,13 +295,13 @@ 0.1.5 / 2015-01-01 | ||
* Remove `cli.js` form `.npmignore` (2660d85) | ||
* Remove options description from `Readme.md` (6b7ce6b) | ||
* Refactor API in `Readme.md` (7592c62) | ||
* Add build script to generate `Options.md` (4ce3d44) | ||
* Add `script/` and `doc/` to bower ignore, `.npmignore` (0fd9da4) | ||
* Add `doc/Options.md` (8375837) | ||
* Add missing new-line character in `Readme.md` (ce34a40) | ||
* Update CLI usage in `Readme.md` (fdfbdeb) | ||
* Remove nodes containing information from `Readme.md` (1234c23) | ||
* Add `doc/Nodes.md` containing refactored AST information (2240454) | ||
* Fix overflowing `logo.svg` (8f5893a) | ||
* Remove `cli.js` form `.npmignore` ([2660d85](https://github.com/wooorm/mdast/commit/2660d85)) | ||
* Remove options description from `Readme.md` ([6b7ce6b](https://github.com/wooorm/mdast/commit/6b7ce6b)) | ||
* Refactor API in `Readme.md` ([7592c62](https://github.com/wooorm/mdast/commit/7592c62)) | ||
* Add build script to generate `Options.md` ([4ce3d44](https://github.com/wooorm/mdast/commit/4ce3d44)) | ||
* Add `script/` and `doc/` to bower ignore, `.npmignore` ([0fd9da4](https://github.com/wooorm/mdast/commit/0fd9da4)) | ||
* Add `doc/Options.md` ([8375837](https://github.com/wooorm/mdast/commit/8375837)) | ||
* Add missing new-line character in `Readme.md` ([ce34a40](https://github.com/wooorm/mdast/commit/ce34a40)) | ||
* Update CLI usage in `Readme.md` ([fdfbdeb](https://github.com/wooorm/mdast/commit/fdfbdeb)) | ||
* Remove nodes containing information from `Readme.md` ([1234c23](https://github.com/wooorm/mdast/commit/1234c23)) | ||
* Add `doc/Nodes.md` containing refactored AST information ([2240454](https://github.com/wooorm/mdast/commit/2240454)) | ||
* Fix overflowing `logo.svg` ([8f5893a](https://github.com/wooorm/mdast/commit/8f5893a)) | ||
@@ -296,26 +311,26 @@ 0.1.4 / 2014-12-30 | ||
* Update benchmark results in `Readme.md` (852c1ef) | ||
* Update stringification options in `Readme.md` to reflect changes in 3f5d136 (7049bb3) | ||
* Rename `horizontal-rule` stringification options to `rule` (da1c223) | ||
* Rename `setext-headings` stringification option to `setext` (3f5d136) | ||
* Remove `prefer` before several stirngification options (17b2668) | ||
* Remove multiple new lines from CLI by using stdout instead of console (c8a6a39) | ||
* Remove multiple new lines after the stringified AST (b1aaabd) | ||
* Fix bug in CLI with exit code when provided with invalid file path (bea737e) | ||
* Add mention of same file input output to `cli.js` (6b8aee0) | ||
* Update code example in `Readme.md` to reflect changes in a1a5a09 (b3ea773) | ||
* Fix bug in longest-repetition at end of input (9da5536) | ||
* Merge branch 'feature/add-cli' (5aa392a) | ||
* Add CLI useage to `Readme.md` (2a261b5) | ||
* Fix typo in CLIs options (2201691) | ||
* Fix typo in package description (de94a32) | ||
* Add test for missing input to `test/cli.sh` (8e88164) | ||
* Remove commented tests in `test/cli.sh` (e2579b6) | ||
* Fix comment in CLIs help (a7ef1f3) | ||
* Add `test-cli` npm script target to `package.json` (13807c4) | ||
* Add `test/cli.sh` (d55c001) | ||
* Add `lint-cli` npm script target to `package.json` (ec682f1) | ||
* Add CLI (301d834) | ||
* Add `cli.js` (d788807) | ||
* Add `cli`, `bin` to package keywords (7dc0dbf) | ||
* Update benchmark results in `Readme.md` ([852c1ef](https://github.com/wooorm/mdast/commit/852c1ef)) | ||
* Update stringification options in `Readme.md` to reflect changes in 3f5d136 ([7049bb3](https://github.com/wooorm/mdast/commit/7049bb3)) | ||
* Rename `horizontal-rule` stringification options to `rule` ([da1c223](https://github.com/wooorm/mdast/commit/da1c223)) | ||
* Rename `setext-headings` stringification option to `setext` ([3f5d136](https://github.com/wooorm/mdast/commit/3f5d136)) | ||
* Remove `prefer` before several stirngification options ([17b2668](https://github.com/wooorm/mdast/commit/17b2668)) | ||
* Remove multiple new lines from CLI by using stdout instead of console ([c8a6a39](https://github.com/wooorm/mdast/commit/c8a6a39)) | ||
* Remove multiple new lines after the stringified AST ([b1aaabd](https://github.com/wooorm/mdast/commit/b1aaabd)) | ||
* Fix bug in CLI with exit code when provided with invalid file path ([bea737e](https://github.com/wooorm/mdast/commit/bea737e)) | ||
* Add mention of same file input output to `cli.js` ([6b8aee0](https://github.com/wooorm/mdast/commit/6b8aee0)) | ||
* Update code example in `Readme.md` to reflect changes in a1a5a09 ([b3ea773](https://github.com/wooorm/mdast/commit/b3ea773)) | ||
* Fix bug in longest-repetition at end of input ([9da5536](https://github.com/wooorm/mdast/commit/9da5536)) | ||
* Merge branch 'feature/add-cli' ([5aa392a](https://github.com/wooorm/mdast/commit/5aa392a)) | ||
* Add CLI useage to `Readme.md` ([2a261b5](https://github.com/wooorm/mdast/commit/2a261b5)) | ||
* Fix typo in CLIs options ([2201691](https://github.com/wooorm/mdast/commit/2201691)) | ||
* Fix typo in package description ([de94a32](https://github.com/wooorm/mdast/commit/de94a32)) | ||
* Add test for missing input to `test/cli.sh` ([8e88164](https://github.com/wooorm/mdast/commit/8e88164)) | ||
* Remove commented tests in `test/cli.sh` ([e2579b6](https://github.com/wooorm/mdast/commit/e2579b6)) | ||
* Fix comment in CLIs help ([a7ef1f3](https://github.com/wooorm/mdast/commit/a7ef1f3)) | ||
* Add `test-cli` npm script target to `package.json` ([13807c4](https://github.com/wooorm/mdast/commit/13807c4)) | ||
* Add `test/cli.sh` ([d55c001](https://github.com/wooorm/mdast/commit/d55c001)) | ||
* Add `lint-cli` npm script target to `package.json` ([ec682f1](https://github.com/wooorm/mdast/commit/ec682f1)) | ||
* Add CLI ([301d834](https://github.com/wooorm/mdast/commit/301d834)) | ||
* Add `cli.js` ([d788807](https://github.com/wooorm/mdast/commit/d788807)) | ||
* Add `cli`, `bin` to package keywords ([7dc0dbf](https://github.com/wooorm/mdast/commit/7dc0dbf)) | ||
@@ -325,28 +340,28 @@ 0.1.3 / 2014-12-28 | ||
* Merge branch 'feature/stringification/preferred-code-block-style' (cde17e9) | ||
* Add documentation for preferred code block-style (3a0b498) | ||
* Add support for preferred code block-style (2d9efe0) | ||
* Add tests for incorrect code block-style options (7ae7635) | ||
* Add fixtures preferred code block-style (b7ad069) | ||
* Merge branch 'feature/stringification/preferred-footnote-style' (337b7d0) | ||
* Add documentation for stringification with reference footnote options (f30b5d9) | ||
* Add support for stringification with reference footnote options (0a56d54) | ||
* Move internal copy method over to `lib/utilities.js` (2a2256c) | ||
* Add tests for incorrect reference footnote options (feb3051) | ||
* Add fixtures for stringification of inline- and reference-style footnotes (320d027) | ||
* Merge branch 'bug/parse/formatting-in-nested-footnotes' (373ff32) | ||
* Fix a bug when nested footnotes contain formatting (814ad3d) | ||
* Merge branch 'bug/parse/fix-generating-unique-footnote-ids' (5067adf) | ||
* Fix a bug when generating footnote ids (2f33abe) | ||
* Merge branch 'feature/stringification/preferred-link-style' (6d2214a) | ||
* Add documentation for stringification with reference link options (d601f5c) | ||
* Add support for stringification with reference link options (2d36069) | ||
* Add tests for incorrect setext header options (d06b77c) | ||
* Add tests for incorrect reference link options (9b74973) | ||
* Add fixtures for stringification of inline- and reference-style links (e68ac89) | ||
* Merge branch 'feature/stringification/less-escaped-characters' (c72bdd0) | ||
* Remove escape from exclamation-marks (1d09c86) | ||
* Remove escape from dots when not preceded by a digit (e82f1b0) | ||
* Remove superfluous escaped full-stops from fixtures (a1a5a09) | ||
* Update jscs-jsdoc (bb01118) | ||
* Merge branch 'feature/stringification/preferred-code-block-style' ([cde17e9](https://github.com/wooorm/mdast/commit/cde17e9)) | ||
* Add documentation for preferred code block-style ([3a0b498](https://github.com/wooorm/mdast/commit/3a0b498)) | ||
* Add support for preferred code block-style ([2d9efe0](https://github.com/wooorm/mdast/commit/2d9efe0)) | ||
* Add tests for incorrect code block-style options ([7ae7635](https://github.com/wooorm/mdast/commit/7ae7635)) | ||
* Add fixtures preferred code block-style ([b7ad069](https://github.com/wooorm/mdast/commit/b7ad069)) | ||
* Merge branch 'feature/stringification/preferred-footnote-style' ([337b7d0](https://github.com/wooorm/mdast/commit/337b7d0)) | ||
* Add documentation for stringification with reference footnote options ([f30b5d9](https://github.com/wooorm/mdast/commit/f30b5d9)) | ||
* Add support for stringification with reference footnote options ([0a56d54](https://github.com/wooorm/mdast/commit/0a56d54)) | ||
* Move internal copy method over to `lib/utilities.js` ([2a2256c](https://github.com/wooorm/mdast/commit/2a2256c)) | ||
* Add tests for incorrect reference footnote options ([feb3051](https://github.com/wooorm/mdast/commit/feb3051)) | ||
* Add fixtures for stringification of inline- and reference-style footnotes ([320d027](https://github.com/wooorm/mdast/commit/320d027)) | ||
* Merge branch 'bug/parse/formatting-in-nested-footnotes' ([373ff32](https://github.com/wooorm/mdast/commit/373ff32)) | ||
* Fix a bug when nested footnotes contain formatting ([814ad3d](https://github.com/wooorm/mdast/commit/814ad3d)) | ||
* Merge branch 'bug/parse/fix-generating-unique-footnote-ids' ([5067adf](https://github.com/wooorm/mdast/commit/5067adf)) | ||
* Fix a bug when generating footnote ids ([2f33abe](https://github.com/wooorm/mdast/commit/2f33abe)) | ||
* Merge branch 'feature/stringification/preferred-link-style' ([6d2214a](https://github.com/wooorm/mdast/commit/6d2214a)) | ||
* Add documentation for stringification with reference link options ([d601f5c](https://github.com/wooorm/mdast/commit/d601f5c)) | ||
* Add support for stringification with reference link options ([2d36069](https://github.com/wooorm/mdast/commit/2d36069)) | ||
* Add tests for incorrect setext header options ([d06b77c](https://github.com/wooorm/mdast/commit/d06b77c)) | ||
* Add tests for incorrect reference link options ([9b74973](https://github.com/wooorm/mdast/commit/9b74973)) | ||
* Add fixtures for stringification of inline- and reference-style links ([e68ac89](https://github.com/wooorm/mdast/commit/e68ac89)) | ||
* Merge branch 'feature/stringification/less-escaped-characters' ([c72bdd0](https://github.com/wooorm/mdast/commit/c72bdd0)) | ||
* Remove escape from exclamation-marks ([1d09c86](https://github.com/wooorm/mdast/commit/1d09c86)) | ||
* Remove escape from dots when not preceded by a digit ([e82f1b0](https://github.com/wooorm/mdast/commit/e82f1b0)) | ||
* Remove superfluous escaped full-stops from fixtures ([a1a5a09](https://github.com/wooorm/mdast/commit/a1a5a09)) | ||
* Update jscs-jsdoc ([bb01118](https://github.com/wooorm/mdast/commit/bb01118)) | ||
@@ -356,19 +371,19 @@ 0.1.2 / 2014-12-26 | ||
* Merge branch 'feature/stringification/emphasis-and-strong' (c6b5025) | ||
* Add support for stringification with emphasis options (b7fd038) | ||
* Add support for stringification with emphasis options (7dfd330) | ||
* Add tests for incorrect emphasis options (8d0e3ab) | ||
* Add fixtures for setting strong and emphasis style (ad0c6e2) | ||
* Refactor table-stringification (9314048) | ||
* Merge branch 'feature/add-prefered-horizontal-rule-stringification' (da69db1) | ||
* Add docs for `options.horizontalRule` to `Readme.md` (7f2fbf8) | ||
* Add support for stringification with horizontal-rule options (dbbf839) | ||
* Add tests for incorrect horizontal-rule options (439d050) | ||
* Add fixtures for setting horizontal-rule styles (c57247b) | ||
* Merge branch 'feature/add-prefered-bullet-stringification' (6faf93a) | ||
* Add docs for `options.button` to `Readme.md` (43846a5) | ||
* Add test for stringification with invalid bullet option (0045306) | ||
* Add support for stringification with bullet options for unordered lists (bb6b4bd) | ||
* Add fixtures for setting bullets for unordered lists (a3a8566) | ||
* Add support for testing fixtures with options (2196690) | ||
* Merge branch 'feature/stringification/emphasis-and-strong' ([c6b5025](https://github.com/wooorm/mdast/commit/c6b5025)) | ||
* Add support for stringification with emphasis options ([b7fd038](https://github.com/wooorm/mdast/commit/b7fd038)) | ||
* Add support for stringification with emphasis options ([7dfd330](https://github.com/wooorm/mdast/commit/7dfd330)) | ||
* Add tests for incorrect emphasis options ([8d0e3ab](https://github.com/wooorm/mdast/commit/8d0e3ab)) | ||
* Add fixtures for setting strong and emphasis style ([ad0c6e2](https://github.com/wooorm/mdast/commit/ad0c6e2)) | ||
* Refactor table-stringification ([9314048](https://github.com/wooorm/mdast/commit/9314048)) | ||
* Merge branch 'feature/add-prefered-horizontal-rule-stringification' ([da69db1](https://github.com/wooorm/mdast/commit/da69db1)) | ||
* Add docs for `options.horizontalRule` to `Readme.md` ([7f2fbf8](https://github.com/wooorm/mdast/commit/7f2fbf8)) | ||
* Add support for stringification with horizontal-rule options ([dbbf839](https://github.com/wooorm/mdast/commit/dbbf839)) | ||
* Add tests for incorrect horizontal-rule options ([439d050](https://github.com/wooorm/mdast/commit/439d050)) | ||
* Add fixtures for setting horizontal-rule styles ([c57247b](https://github.com/wooorm/mdast/commit/c57247b)) | ||
* Merge branch 'feature/add-prefered-bullet-stringification' ([6faf93a](https://github.com/wooorm/mdast/commit/6faf93a)) | ||
* Add docs for `options.button` to `Readme.md` ([43846a5](https://github.com/wooorm/mdast/commit/43846a5)) | ||
* Add test for stringification with invalid bullet option ([0045306](https://github.com/wooorm/mdast/commit/0045306)) | ||
* Add support for stringification with bullet options for unordered lists ([bb6b4bd](https://github.com/wooorm/mdast/commit/bb6b4bd)) | ||
* Add fixtures for setting bullets for unordered lists ([a3a8566](https://github.com/wooorm/mdast/commit/a3a8566)) | ||
* Add support for testing fixtures with options ([2196690](https://github.com/wooorm/mdast/commit/2196690)) | ||
@@ -378,20 +393,20 @@ 0.1.1 / 2014-12-25 | ||
* Fix incorrect IDL in `Readme.md` (2cf8fd4) | ||
* Fix incorrect link in `Readme.md` (8c052c0) | ||
* Add proper `parse`, `stringify` docs to `Readme.md` (7c1a9a5) | ||
* Add useage example for setext-heading stringification to docs (f10e0b9) | ||
* Add support for stringification to setex-style headings (eae5300) | ||
* Add fixtures for setex style headings (835b31b) | ||
* Add support for testing stringified output (365a4bc) | ||
* Add stringification of final new-line (bfceec8) | ||
* Remove stringification of superfluous new-lines (7267bbd) | ||
* Refactor `lib/parse.js` to cache expressions (b986fe2) | ||
* Refactor `test/index.js` to use constants (deb8328) | ||
* Refactor `lib/stringify.js` to use constants (2699e17) | ||
* Refactor `lib/parse.js` to use constants (ecb9248) | ||
* Refactor to adhere to strict jsdoc style (8db0db8) | ||
* Add jscs-jsdoc configuration to `.jscs.json` (7fc2a99) | ||
* Add jscs-jsdoc as a dev-dependency (cf51e63) | ||
* Refactor npm scripts for changes in npm (d2da45d) | ||
* Update markdown-table (d7c4332) | ||
* Fix incorrect IDL in `Readme.md` ([2cf8fd4](https://github.com/wooorm/mdast/commit/2cf8fd4)) | ||
* Fix incorrect link in `Readme.md` ([8c052c0](https://github.com/wooorm/mdast/commit/8c052c0)) | ||
* Add proper `parse`, `stringify` docs to `Readme.md` ([7c1a9a5](https://github.com/wooorm/mdast/commit/7c1a9a5)) | ||
* Add useage example for setext-heading stringification to docs ([f10e0b9](https://github.com/wooorm/mdast/commit/f10e0b9)) | ||
* Add support for stringification to setex-style headings ([eae5300](https://github.com/wooorm/mdast/commit/eae5300)) | ||
* Add fixtures for setex style headings ([835b31b](https://github.com/wooorm/mdast/commit/835b31b)) | ||
* Add support for testing stringified output ([365a4bc](https://github.com/wooorm/mdast/commit/365a4bc)) | ||
* Add stringification of final new-line ([bfceec8](https://github.com/wooorm/mdast/commit/bfceec8)) | ||
* Remove stringification of superfluous new-lines ([7267bbd](https://github.com/wooorm/mdast/commit/7267bbd)) | ||
* Refactor `lib/parse.js` to cache expressions ([b986fe2](https://github.com/wooorm/mdast/commit/b986fe2)) | ||
* Refactor `test/index.js` to use constants ([deb8328](https://github.com/wooorm/mdast/commit/deb8328)) | ||
* Refactor `lib/stringify.js` to use constants ([2699e17](https://github.com/wooorm/mdast/commit/2699e17)) | ||
* Refactor `lib/parse.js` to use constants ([ecb9248](https://github.com/wooorm/mdast/commit/ecb9248)) | ||
* Refactor to adhere to strict jsdoc style ([8db0db8](https://github.com/wooorm/mdast/commit/8db0db8)) | ||
* Add jscs-jsdoc configuration to `.jscs.json` ([7fc2a99](https://github.com/wooorm/mdast/commit/7fc2a99)) | ||
* Add jscs-jsdoc as a dev-dependency ([cf51e63](https://github.com/wooorm/mdast/commit/cf51e63)) | ||
* Refactor npm scripts for changes in npm ([d2da45d](https://github.com/wooorm/mdast/commit/d2da45d)) | ||
* Update markdown-table ([d7c4332](https://github.com/wooorm/mdast/commit/d7c4332)) | ||
@@ -401,34 +416,34 @@ 0.1.0 / 2014-12-11 | ||
* Refactor `benchmark.js` (5e292b4) | ||
* Update keywords, description in `package.json`, `component.json`, `bower.json` (0ddb468) | ||
* Refactor `Readme.md` (c0a5e0f) | ||
* Add badges for travis, coveralls to `Readme.md` (2ed78e4) | ||
* Add `logo.svg` (0ef2ddb) | ||
* Add missing `new` operator to `lib/stringify.js` (d34d099) | ||
* Fix malformed `bower.json` (5f25ad6) | ||
* Fix incorrect script reference in `component.json` (b4e5995) | ||
* Add strict mode to `index.js` (7df8c8a) | ||
* Refactor `bower.json` (2d71079) | ||
* Move `lib/stringify/index.js` to `lib/stringify.js` (a554432) | ||
* Move `lib/parse/index.js` to `lib/parse.js` (54fc3ac) | ||
* Add npm deployment to `.travis.yml` (35d2315) | ||
* Remove `before_install` script in `.travis.yml` (8969054) | ||
* Remove `Makefile` (79b6908) | ||
* Refactor `.npmignore` (b3d6606) | ||
* Refactor `.gitignore` (c38fe50) | ||
* Add broader version ranges to `package.json` (ebb59d6) | ||
* Update eslint (fa518e6) | ||
* Update matcha (b4092a7) | ||
* Update mocha (c551efa) | ||
* Refactor npm scripts in `package.json` (8e48c03) | ||
* Move `test/mdast.spec.js` to `test/index.js` (5b1e18d) | ||
* Move `spec/` to `test/` (8e34272) | ||
* Move `benchmark/index.js` to `benchmark.js` (1bba064) | ||
* Refactor to disallow spaces after object keys (a29d222) | ||
* Add `.eslintrc` (18a0343) | ||
* Fix spacing around inline-code containing backticks (a5d617f) | ||
* Refactor to simplify `spec/mdast.spec.js` (6cc8d23) | ||
* Add benchmark for `mdast.stringify` (8c911ef) | ||
* Merge branch 'bug/fix-links' (8db4a26) | ||
* Remove failing fixtures (a2c5ce5) | ||
* Refactor `benchmark.js` ([5e292b4](https://github.com/wooorm/mdast/commit/5e292b4)) | ||
* Update keywords, description in `package.json`, `component.json`, `bower.json` ([0ddb468](https://github.com/wooorm/mdast/commit/0ddb468)) | ||
* Refactor `Readme.md` ([c0a5e0f](https://github.com/wooorm/mdast/commit/c0a5e0f)) | ||
* Add badges for travis, coveralls to `Readme.md` ([2ed78e4](https://github.com/wooorm/mdast/commit/2ed78e4)) | ||
* Add `logo.svg` ([0ef2ddb](https://github.com/wooorm/mdast/commit/0ef2ddb)) | ||
* Add missing `new` operator to `lib/stringify.js` ([d34d099](https://github.com/wooorm/mdast/commit/d34d099)) | ||
* Fix malformed `bower.json` ([5f25ad6](https://github.com/wooorm/mdast/commit/5f25ad6)) | ||
* Fix incorrect script reference in `component.json` ([b4e5995](https://github.com/wooorm/mdast/commit/b4e5995)) | ||
* Add strict mode to `index.js` ([7df8c8a](https://github.com/wooorm/mdast/commit/7df8c8a)) | ||
* Refactor `bower.json` ([2d71079](https://github.com/wooorm/mdast/commit/2d71079)) | ||
* Move `lib/stringify/index.js` to `lib/stringify.js` ([a554432](https://github.com/wooorm/mdast/commit/a554432)) | ||
* Move `lib/parse/index.js` to `lib/parse.js` ([54fc3ac](https://github.com/wooorm/mdast/commit/54fc3ac)) | ||
* Add npm deployment to `.travis.yml` ([35d2315](https://github.com/wooorm/mdast/commit/35d2315)) | ||
* Remove `before_install` script in `.travis.yml` ([8969054](https://github.com/wooorm/mdast/commit/8969054)) | ||
* Remove `Makefile` ([79b6908](https://github.com/wooorm/mdast/commit/79b6908)) | ||
* Refactor `.npmignore` ([b3d6606](https://github.com/wooorm/mdast/commit/b3d6606)) | ||
* Refactor `.gitignore` ([c38fe50](https://github.com/wooorm/mdast/commit/c38fe50)) | ||
* Add broader version ranges to `package.json` ([ebb59d6](https://github.com/wooorm/mdast/commit/ebb59d6)) | ||
* Update eslint ([fa518e6](https://github.com/wooorm/mdast/commit/fa518e6)) | ||
* Update matcha ([b4092a7](https://github.com/wooorm/mdast/commit/b4092a7)) | ||
* Update mocha ([c551efa](https://github.com/wooorm/mdast/commit/c551efa)) | ||
* Refactor npm scripts in `package.json` ([8e48c03](https://github.com/wooorm/mdast/commit/8e48c03)) | ||
* Move `test/mdast.spec.js` to `test/index.js` ([5b1e18d](https://github.com/wooorm/mdast/commit/5b1e18d)) | ||
* Move `spec/` to `test/` ([8e34272](https://github.com/wooorm/mdast/commit/8e34272)) | ||
* Move `benchmark/index.js` to `benchmark.js` ([1bba064](https://github.com/wooorm/mdast/commit/1bba064)) | ||
* Refactor to disallow spaces after object keys ([a29d222](https://github.com/wooorm/mdast/commit/a29d222)) | ||
* Add `.eslintrc` ([18a0343](https://github.com/wooorm/mdast/commit/18a0343)) | ||
* Fix spacing around inline-code containing backticks ([a5d617f](https://github.com/wooorm/mdast/commit/a5d617f)) | ||
* Refactor to simplify `spec/mdast.spec.js` ([6cc8d23](https://github.com/wooorm/mdast/commit/6cc8d23)) | ||
* Add benchmark for `mdast.stringify` ([8c911ef](https://github.com/wooorm/mdast/commit/8c911ef)) | ||
* Merge branch 'bug/fix-links' ([8db4a26](https://github.com/wooorm/mdast/commit/8db4a26)) | ||
* Remove failing fixtures ([a2c5ce5](https://github.com/wooorm/mdast/commit/a2c5ce5)) | ||
@@ -438,3 +453,3 @@ 0.1.0-rc.2 / 2014-12-10 | ||
* Add block-level nodes to every list-item (ab376d7) | ||
* Add block-level nodes to every list-item ([ab376d7](https://github.com/wooorm/mdast/commit/ab376d7)) | ||
@@ -444,32 +459,32 @@ 0.1.0-rc.1 / 2014-12-07 | ||
* Add near-finished stringifier (260ca45) | ||
* Fix test for changes in inline-code/code (9f9a0bd) | ||
* Fix loose list-items by adding paragraph-nodes where needed (ff604ee) | ||
* Fix multiple direct sibling blockquotes from appearing (2a9462d) | ||
* Fix `undefined` in strings when using line-breaks inside list-items (add8de0) | ||
* Add inline-code node for code-spans (a4a9abb) | ||
* Remove null-type for table alignment (743ac9f) | ||
* Add better errors for fixtures in spec (a01ad74) | ||
* Add white-space trimming to code-blocks (258a5cc) | ||
* Refactor position of `title` attribute in parse-output (9d2aa88) | ||
* Add he to API to decode HTML entities in `text` (f0a8843) | ||
* Fix style issues in API (bb7ab06) | ||
* Update copyright in Readme.md (94d5279) | ||
* Remove testling (45a2457) | ||
* Refactor property order in bower.json, package.json, component.json (eda2b4e) | ||
* Update .gitignore, .npmignore (295a784) | ||
* Add he as a dependency (fa1686b) | ||
* Update eslint, jscs, mocha (ca17296) | ||
* Fix incorrect repo url (082c6d1) | ||
* Refactor table output (d09da47) | ||
* Add initial work for both parse and stringify functionality (20dedde) | ||
* Refactor inline lexer (d32fce5) | ||
* Add missing continue statement (ae506ec) | ||
* Remove extraneous rule in eslint target (68e725f) | ||
* Refactor outputting similar nodes (1266d71) | ||
* Remove conditional assignment (b1cbadc) | ||
* Add benchmark to docs (5170d2f) | ||
* Add a faster option setting mechanism (7012903) | ||
* Add a simpler regular expression builder (74b17cf) | ||
* Remove unneeded noop (59eb0c5) | ||
* Add near-finished stringifier ([260ca45](https://github.com/wooorm/mdast/commit/260ca45)) | ||
* Fix test for changes in inline-code/code ([9f9a0bd](https://github.com/wooorm/mdast/commit/9f9a0bd)) | ||
* Fix loose list-items by adding paragraph-nodes where needed ([ff604ee](https://github.com/wooorm/mdast/commit/ff604ee)) | ||
* Fix multiple direct sibling blockquotes from appearing ([2a9462d](https://github.com/wooorm/mdast/commit/2a9462d)) | ||
* Fix `undefined` in strings when using line-breaks inside list-items ([add8de0](https://github.com/wooorm/mdast/commit/add8de0)) | ||
* Add inline-code node for code-spans ([a4a9abb](https://github.com/wooorm/mdast/commit/a4a9abb)) | ||
* Remove null-type for table alignment ([743ac9f](https://github.com/wooorm/mdast/commit/743ac9f)) | ||
* Add better errors for fixtures in spec ([a01ad74](https://github.com/wooorm/mdast/commit/a01ad74)) | ||
* Add white-space trimming to code-blocks ([258a5cc](https://github.com/wooorm/mdast/commit/258a5cc)) | ||
* Refactor position of `title` attribute in parse-output ([9d2aa88](https://github.com/wooorm/mdast/commit/9d2aa88)) | ||
* Add he to API to decode HTML entities in `text` ([f0a8843](https://github.com/wooorm/mdast/commit/f0a8843)) | ||
* Fix style issues in API ([bb7ab06](https://github.com/wooorm/mdast/commit/bb7ab06)) | ||
* Update copyright in Readme.md ([94d5279](https://github.com/wooorm/mdast/commit/94d5279)) | ||
* Remove testling ([45a2457](https://github.com/wooorm/mdast/commit/45a2457)) | ||
* Refactor property order in bower.json, package.json, component.json ([eda2b4e](https://github.com/wooorm/mdast/commit/eda2b4e)) | ||
* Update .gitignore, .npmignore ([295a784](https://github.com/wooorm/mdast/commit/295a784)) | ||
* Add he as a dependency ([fa1686b](https://github.com/wooorm/mdast/commit/fa1686b)) | ||
* Update eslint, jscs, mocha ([ca17296](https://github.com/wooorm/mdast/commit/ca17296)) | ||
* Fix incorrect repo url ([082c6d1](https://github.com/wooorm/mdast/commit/082c6d1)) | ||
* Refactor table output ([d09da47](https://github.com/wooorm/mdast/commit/d09da47)) | ||
* Add initial work for both parse and stringify functionality ([20dedde](https://github.com/wooorm/mdast/commit/20dedde)) | ||
* Refactor inline lexer ([d32fce5](https://github.com/wooorm/mdast/commit/d32fce5)) | ||
* Add missing continue statement ([ae506ec](https://github.com/wooorm/mdast/commit/ae506ec)) | ||
* Remove extraneous rule in eslint target ([68e725f](https://github.com/wooorm/mdast/commit/68e725f)) | ||
* Refactor outputting similar nodes ([1266d71](https://github.com/wooorm/mdast/commit/1266d71)) | ||
* Remove conditional assignment ([b1cbadc](https://github.com/wooorm/mdast/commit/b1cbadc)) | ||
* Add benchmark to docs ([5170d2f](https://github.com/wooorm/mdast/commit/5170d2f)) | ||
* Add a faster option setting mechanism ([7012903](https://github.com/wooorm/mdast/commit/7012903)) | ||
* Add a simpler regular expression builder ([74b17cf](https://github.com/wooorm/mdast/commit/74b17cf)) | ||
* Remove unneeded noop ([59eb0c5](https://github.com/wooorm/mdast/commit/59eb0c5)) | ||
@@ -479,8 +494,8 @@ 0.0.3 / 2014-08-02 | ||
* Add documentation for settings (200c12d) | ||
* Fix option mechanism so different settings can work together (ccbd4d9) | ||
* Add functionality to merge HTML nodes (a8de527) | ||
* Fix mailto removal in implicit links (56cf803) | ||
* Add more verbose comments (2bbcd9d) | ||
* Fix typo in docs (4bcb0e6) | ||
* Add documentation for settings ([200c12d](https://github.com/wooorm/mdast/commit/200c12d)) | ||
* Fix option mechanism so different settings can work together ([ccbd4d9](https://github.com/wooorm/mdast/commit/ccbd4d9)) | ||
* Add functionality to merge HTML nodes ([a8de527](https://github.com/wooorm/mdast/commit/a8de527)) | ||
* Fix mailto removal in implicit links ([56cf803](https://github.com/wooorm/mdast/commit/56cf803)) | ||
* Add more verbose comments ([2bbcd9d](https://github.com/wooorm/mdast/commit/2bbcd9d)) | ||
* Fix typo in docs ([4bcb0e6](https://github.com/wooorm/mdast/commit/4bcb0e6)) | ||
@@ -490,54 +505,54 @@ 0.0.2 / 2014-07-31 | ||
* Add docs for nodes (7ca9bf6) | ||
* Rename cells > rows for tables (3b6ec59) | ||
* Fix a typo where images had an "href" attribute instead of "src" (6413123) | ||
* Fix a bug where an internal type (looseItem) was exposed (bd528d3) | ||
* Fix documentation for b7b5b44 (15d1e5c) | ||
* Refactored API so results are wrapped in a root token, resulting in easier footnote finding (b7b5b44) | ||
* Fininshed renaming: marked > mdast (cbadc46) | ||
* Added initial functionality for footnotes (feb9f52) | ||
* Fix a bug where multiple text tokens were not merged (bcbefb8) | ||
* Refactor fixture-loading mechanism (a305087) | ||
* Refactored readme (2cef93f) | ||
* Renamed README > Readme (38aa366) | ||
* Removed build.js (8cf2070) | ||
* Added changelog (84b17b9) | ||
* Update travis (f87d151) | ||
* Refactor bower.json (a018d93) | ||
* Refactor component.json (410868f) | ||
* Added testling (05ef1f3) | ||
* Update mocha (551766e) | ||
* Refactored package.json (a921818) | ||
* Removed robotskirt, showdown, markdown (8f7a14b) | ||
* Added benchmark (efa5710) | ||
* Fixed npm script targets; initial benchmark (e470335) | ||
* Removed bin, doc, man (91a161c) | ||
* Renamed lib/mdast.js > index.js (3b7c751) | ||
* Removed marked tests (41c97d7) | ||
* Added more istanbul ignore comments for error reporting code (e7ca49b) | ||
* Added a unit test for images with empty alt attributes (f6358a8) | ||
* Made token types and variables more verbose (211695b) | ||
* Inlined peek in api (9082a7a) | ||
* Added unit tests for automatic email detection (652d059) | ||
* Added two istanbul ignore comments for error reporting code (300c411) | ||
* Removed an extraneous debug message, removed a dead statement (f0b54d5) | ||
* Fixed an istanbul-ignore comment (9839346) | ||
* Added unit tests for pedantic list items (stricter definition) (1cd72d4) | ||
* Added unit tests for pedantic code blocks (persistant trailing whitespace) (4fa9d8a) | ||
* Added a unit test for images with a title (d6c24cd) | ||
* Removed two uncovered branches from spec (ed66d62) | ||
* Added inline pedantic fixtures (4e9362d) | ||
* Removed functionality to exposing inline lexer (17cd6be) | ||
* removed smartLists options and moved it to pedantic; added fixtures (866fd20) | ||
* Added a tables:false fixture (90ab051) | ||
* Added functionality to use options through fixture filenames (0343bcc) | ||
* Refactored merge; added istanbul ignore coverage comments (1b7967e) | ||
* Add unit test linting; add coverage (66dd3dc) | ||
* Fixed style (e3f2857) | ||
* Refactor; things are working (ae5dc9e) | ||
* Major refactor, JSON is now given instead of HTML (24f7d44) | ||
* Refactored .jscs.json to indent with 2 instead of four spaces (409758d) | ||
* Add myself as a copyright holder to LICENSE (237d979) | ||
* Refactor for mdast (19585b8) | ||
* Add docs for nodes ([7ca9bf6](https://github.com/wooorm/mdast/commit/7ca9bf6)) | ||
* Rename cells > rows for tables ([3b6ec59](https://github.com/wooorm/mdast/commit/3b6ec59)) | ||
* Fix a typo where images had an "href" attribute instead of "src" ([6413123](https://github.com/wooorm/mdast/commit/6413123)) | ||
* Fix a bug where an internal type ([looseItem](https://github.com/wooorm/mdast/commit/looseItem) was exposed ([bd528d3](https://github.com/wooorm/mdast/commit/bd528d3)) | ||
* Fix documentation for b7b5b44 ([15d1e5c](https://github.com/wooorm/mdast/commit/15d1e5c)) | ||
* Refactored API so results are wrapped in a root token, resulting in easier footnote finding ([b7b5b44](https://github.com/wooorm/mdast/commit/b7b5b44)) | ||
* Fininshed renaming: marked > mdast ([cbadc46](https://github.com/wooorm/mdast/commit/cbadc46)) | ||
* Added initial functionality for footnotes ([feb9f52](https://github.com/wooorm/mdast/commit/feb9f52)) | ||
* Fix a bug where multiple text tokens were not merged ([bcbefb8](https://github.com/wooorm/mdast/commit/bcbefb8)) | ||
* Refactor fixture-loading mechanism ([a305087](https://github.com/wooorm/mdast/commit/a305087)) | ||
* Refactored readme ([2cef93f](https://github.com/wooorm/mdast/commit/2cef93f)) | ||
* Renamed README > Readme ([38aa366](https://github.com/wooorm/mdast/commit/38aa366)) | ||
* Removed build.js ([8cf2070](https://github.com/wooorm/mdast/commit/8cf2070)) | ||
* Added changelog ([84b17b9](https://github.com/wooorm/mdast/commit/84b17b9)) | ||
* Update travis ([f87d151](https://github.com/wooorm/mdast/commit/f87d151)) | ||
* Refactor bower.json ([a018d93](https://github.com/wooorm/mdast/commit/a018d93)) | ||
* Refactor component.json ([410868f](https://github.com/wooorm/mdast/commit/410868f)) | ||
* Added testling ([05ef1f3](https://github.com/wooorm/mdast/commit/05ef1f3)) | ||
* Update mocha ([551766e](https://github.com/wooorm/mdast/commit/551766e)) | ||
* Refactored package.json ([a921818](https://github.com/wooorm/mdast/commit/a921818)) | ||
* Removed robotskirt, showdown, markdown ([8f7a14b](https://github.com/wooorm/mdast/commit/8f7a14b)) | ||
* Added benchmark ([efa5710](https://github.com/wooorm/mdast/commit/efa5710)) | ||
* Fixed npm script targets; initial benchmark ([e470335](https://github.com/wooorm/mdast/commit/e470335)) | ||
* Removed bin, doc, man ([91a161c](https://github.com/wooorm/mdast/commit/91a161c)) | ||
* Renamed lib/mdast.js > index.js ([3b7c751](https://github.com/wooorm/mdast/commit/3b7c751)) | ||
* Removed marked tests ([41c97d7](https://github.com/wooorm/mdast/commit/41c97d7)) | ||
* Added more istanbul ignore comments for error reporting code ([e7ca49b](https://github.com/wooorm/mdast/commit/e7ca49b)) | ||
* Added a unit test for images with empty alt attributes ([f6358a8](https://github.com/wooorm/mdast/commit/f6358a8)) | ||
* Made token types and variables more verbose ([211695b](https://github.com/wooorm/mdast/commit/211695b)) | ||
* Inlined peek in api ([9082a7a](https://github.com/wooorm/mdast/commit/9082a7a)) | ||
* Added unit tests for automatic email detection ([652d059](https://github.com/wooorm/mdast/commit/652d059)) | ||
* Added two istanbul ignore comments for error reporting code ([300c411](https://github.com/wooorm/mdast/commit/300c411)) | ||
* Removed an extraneous debug message, removed a dead statement ([f0b54d5](https://github.com/wooorm/mdast/commit/f0b54d5)) | ||
* Fixed an istanbul-ignore comment ([9839346](https://github.com/wooorm/mdast/commit/9839346)) | ||
* Added unit tests for pedantic list items (stricter definition) ([1cd72d4](https://github.com/wooorm/mdast/commit/1cd72d4)) | ||
* Added unit tests for pedantic code blocks (persistant trailing whitespace) ([4fa9d8a](https://github.com/wooorm/mdast/commit/4fa9d8a)) | ||
* Added a unit test for images with a title ([d6c24cd](https://github.com/wooorm/mdast/commit/d6c24cd)) | ||
* Removed two uncovered branches from spec ([ed66d62](https://github.com/wooorm/mdast/commit/ed66d62)) | ||
* Added inline pedantic fixtures ([4e9362d](https://github.com/wooorm/mdast/commit/4e9362d)) | ||
* Removed functionality to exposing inline lexer ([17cd6be](https://github.com/wooorm/mdast/commit/17cd6be)) | ||
* removed smartLists options and moved it to pedantic; added fixtures ([866fd20](https://github.com/wooorm/mdast/commit/866fd20)) | ||
* Added a tables:false fixture ([90ab051](https://github.com/wooorm/mdast/commit/90ab051)) | ||
* Added functionality to use options through fixture filenames ([0343bcc](https://github.com/wooorm/mdast/commit/0343bcc)) | ||
* Refactored merge; added istanbul ignore coverage comments ([1b7967e](https://github.com/wooorm/mdast/commit/1b7967e)) | ||
* Add unit test linting; add coverage ([66dd3dc](https://github.com/wooorm/mdast/commit/66dd3dc)) | ||
* Fixed style ([e3f2857](https://github.com/wooorm/mdast/commit/e3f2857)) | ||
* Refactor; things are working ([ae5dc9e](https://github.com/wooorm/mdast/commit/ae5dc9e)) | ||
* Major refactor, JSON is now given instead of HTML ([24f7d44](https://github.com/wooorm/mdast/commit/24f7d44)) | ||
* Refactored .jscs.json to indent with 2 instead of four spaces ([409758d](https://github.com/wooorm/mdast/commit/409758d)) | ||
* Add myself as a copyright holder to LICENSE ([237d979](https://github.com/wooorm/mdast/commit/237d979)) | ||
* Refactor for mdast ([19585b8](https://github.com/wooorm/mdast/commit/19585b8)) | ||
Forked from [marked](https://github.com/chjj/marked). |
@@ -10,2 +10,3 @@ 'use strict'; | ||
var expressions = require('./expressions.js'); | ||
var defaults = require('./defaults.js').parse; | ||
@@ -933,6 +934,7 @@ /* | ||
* Make sure that the first nine numbered list items | ||
* can indent with an extra space: | ||
* can indent with an extra space. That is, when | ||
* the bullet did not receive an extra final space. | ||
*/ | ||
if (Number($2) < 10) { | ||
if (Number($2) < 10 && bullet.length % 2 === 1) { | ||
$2 = SPACE + $2; | ||
@@ -2066,8 +2068,9 @@ } | ||
validate.bool(options, 'gfm', true); | ||
validate.bool(options, 'gfm', defaults.gfm); | ||
validate.bool(options, 'tables', options.gfm); | ||
validate.bool(options, 'yaml', true); | ||
validate.bool(options, 'footnotes', false); | ||
validate.bool(options, 'breaks', false); | ||
validate.bool(options, 'pedantic', false); | ||
validate.bool(options, 'yaml', defaults.yaml); | ||
validate.bool(options, 'commonmark', defaults.commonmark); | ||
validate.bool(options, 'footnotes', defaults.footnotes); | ||
validate.bool(options, 'breaks', defaults.breaks); | ||
validate.bool(options, 'pedantic', defaults.pedantic); | ||
@@ -2074,0 +2077,0 @@ if (!options.gfm && options.tables) { |
@@ -9,2 +9,3 @@ 'use strict'; | ||
var utilities = require('./utilities.js'); | ||
var defaults = require('./defaults.js').stringify; | ||
@@ -29,2 +30,3 @@ /* | ||
var MINIMUM_CODE_FENCE_LENGTH = 3; | ||
var MINIMUM_RULE_LENGTH = 3; | ||
@@ -248,19 +250,22 @@ var EXPRESSIONS_WHITE_SPACE = /\s/; | ||
validate.map(options, 'bullet', LIST_BULLETS, DASH); | ||
validate.map(options, 'rule', HORIZONTAL_RULE_BULLETS, ASTERISK); | ||
validate.map(options, 'emphasis', EMPHASIS_MARKERS, UNDERSCORE); | ||
validate.map(options, 'strong', EMPHASIS_MARKERS, ASTERISK); | ||
validate.map(options, 'fence', FENCE_MARKERS, TICK); | ||
validate.bool(options, 'ruleSpaces', true); | ||
validate.bool(options, 'setext', false); | ||
validate.bool(options, 'closeAtx', false); | ||
validate.bool(options, 'looseTable', false); | ||
validate.bool(options, 'spacedTable', true); | ||
validate.bool(options, 'referenceLinks', false); | ||
validate.bool(options, 'fences', false); | ||
validate.num(options, 'ruleRepetition', 3); | ||
validate.map(options, 'bullet', LIST_BULLETS, defaults.bullet); | ||
validate.map(options, 'rule', HORIZONTAL_RULE_BULLETS, defaults.rule); | ||
validate.map(options, 'emphasis', EMPHASIS_MARKERS, defaults.emphasis); | ||
validate.map(options, 'strong', EMPHASIS_MARKERS, defaults.strong); | ||
validate.map(options, 'fence', FENCE_MARKERS, defaults.fence); | ||
validate.bool(options, 'ruleSpaces', defaults.ruleSpaces); | ||
validate.bool(options, 'setext', defaults.setext); | ||
validate.bool(options, 'closeAtx', defaults.closeAtx); | ||
validate.bool(options, 'looseTable', defaults.looseTable); | ||
validate.bool(options, 'spacedTable', defaults.spacedTable); | ||
validate.bool(options, 'referenceLinks', defaults.referenceLinks); | ||
validate.bool(options, 'fences', defaults.fences); | ||
validate.num(options, 'ruleRepetition', defaults.ruleRepetition); | ||
ruleRepetition = options.ruleRepetition; | ||
if (ruleRepetition < 3 || ruleRepetition !== ruleRepetition) { | ||
if ( | ||
ruleRepetition < MINIMUM_RULE_LENGTH || | ||
ruleRepetition !== ruleRepetition | ||
) { | ||
raise(ruleRepetition, 'options.ruleRepetition'); | ||
@@ -339,2 +344,3 @@ } | ||
var indent; | ||
var spacing; | ||
@@ -345,5 +351,7 @@ level = level + 1; | ||
bullet = (index + 1) + DOT + SPACE; | ||
indent = Math.ceil(bullet.length / HALF) * HALF; | ||
values[index] = bullet + | ||
indent = Math.ceil(bullet.length / INDENT) * INDENT; | ||
spacing = repeat(indent - bullet.length, SPACE); | ||
values[index] = bullet + spacing + | ||
self.listItem(tokens[index], token, level, indent); | ||
@@ -369,12 +377,17 @@ } | ||
var bullet; | ||
var indent; | ||
var spacing; | ||
level = level + 1; | ||
bullet = this.options.bullet + SPACE; | ||
indent = Math.ceil(bullet.length / HALF) * HALF; | ||
/* | ||
* Unordered bullets are always one character, so | ||
* the following can be hard coded. | ||
*/ | ||
bullet = self.options.bullet + SPACE; | ||
spacing = repeat(HALF, SPACE); | ||
while (++index < length) { | ||
values[index] = bullet + | ||
self.listItem(tokens[index], token, level, indent); | ||
values[index] = bullet + spacing + | ||
self.listItem(tokens[index], token, level, INDENT); | ||
} | ||
@@ -442,6 +455,7 @@ | ||
compilerPrototype.heading = function (token, parent, level) { | ||
var setext = this.options.setext; | ||
var closeAtx = this.options.closeAtx; | ||
var self = this; | ||
var setext = self.options.setext; | ||
var closeAtx = self.options.closeAtx; | ||
var depth = token.depth; | ||
var content = this.visitAll(token, level).join(EMPTY); | ||
var content = self.visitAll(token, level).join(EMPTY); | ||
var prefix; | ||
@@ -448,0 +462,0 @@ |
{ | ||
"name": "mdast", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "Speedy Markdown parser/stringifier for multipurpose analysis", | ||
@@ -20,2 +20,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"camelcase": "^1.0.0", | ||
"commander": "^2.0.0", | ||
@@ -44,4 +45,5 @@ "debug": "^2.0.0", | ||
"chalk": "^1.0.0", | ||
"clone": "^1.0.1", | ||
"diff": "^1.0.0", | ||
"eslint": "^0.15.0", | ||
"eslint": "^0.16.0", | ||
"esmangle": "^1.0.0", | ||
@@ -53,3 +55,2 @@ "istanbul": "^0.3.0", | ||
"matcha": "^0.6.0", | ||
"mdast": "^0.8.0", | ||
"mdast-usage": "^0.1.0", | ||
@@ -59,3 +60,4 @@ "mocha": "^2.0.0" | ||
"scripts": { | ||
"test-api": "_mocha --check-leaks test/index.js", | ||
"test-api": "mocha --check-leaks test/index.js", | ||
"test-api-extensive": "TEST_EXTENDED=true npm run test-api", | ||
"test-cli": "bash test/cli.sh", | ||
@@ -66,3 +68,3 @@ "test-coveralls": "istanbul cover _mocha --report lcovonly -- --check-leaks test/index.js", | ||
"test": "npm run test-api && npm run test-cli", | ||
"lint-api": "eslint --env browser index.js lib/parse.js lib/stringify.js lib/utilities.js lib/expressions.js", | ||
"lint-api": "eslint --env browser index.js lib/parse.js lib/stringify.js lib/defaults.js lib/utilities.js lib/expressions.js", | ||
"lint-benchmark": "eslint --global suite,set,bench benchmark.js", | ||
@@ -72,3 +74,3 @@ "lint-cli": "eslint --rule no-process-exit:false cli.js", | ||
"lint-test": "eslint --env mocha test/index.js test/fixtures.js test/plugin.js", | ||
"lint-style": "jscs --reporter inline index.js benchmark.js cli.js example.js script/build-options.js lib/parse.js lib/stringify.js lib/utilities.js test/index.js test/fixtures.js test/plugin.js", | ||
"lint-style": "jscs --reporter inline index.js benchmark.js cli.js example.js script/build-options.js lib/parse.js lib/defaults.js lib/stringify.js lib/utilities.js test/index.js test/fixtures.js test/plugin.js", | ||
"lint": "npm run lint-api && npm run lint-benchmark && npm run lint-cli && npm run lint-script && npm run lint-test && npm run lint-style", | ||
@@ -75,0 +77,0 @@ "make": "npm run lint && npm run test-coverage", |
127
Readme.md
@@ -5,5 +5,5 @@ # ![mdast](https://cdn.rawgit.com/wooorm/mdast/master/logo.svg) | ||
**mdast** is speedy Markdown parser and stringifier for multipurpose analysis in JavaScript. Node and the browser. Lots of tests. 100% coverage. | ||
**mdast** is a markdown parser and stringifier for multipurpose analysis in JavaScript. Node and the browser. Lots of tests. 100% coverage. | ||
It’s not [just](https://github.com/evilstreak/markdown-js) [another](https://github.com/chjj/marked) [Markdown](https://github.com/jonschlinkert/remarkable) [to](https://github.com/jgm/commonmark.js) [HTML](https://github.com/markdown-it/markdown-it) compiler. **mdast** can generate Markdown too, which enables plug-ins (and you) to [change your Readme.md](https://github.com/wooorm/mdast-usage), or [lint the JavaScript in your Markdown](https://github.com/wooorm/eslint-md). | ||
It’s not [just](https://github.com/evilstreak/markdown-js) [another](https://github.com/chjj/marked) [markdown](https://github.com/jonschlinkert/remarkable) [to](https://github.com/jgm/commonmark.js) [HTML](https://github.com/markdown-it/markdown-it) compiler. **mdast** can generate markdown too, which enables plug-ins (and you) to [change your Readme.md](https://github.com/wooorm/mdast-usage), or [lint the JavaScript in your markdown](https://github.com/wooorm/eslint-md). | ||
@@ -36,3 +36,3 @@ ## Installation | ||
UMD (globals/AMD/CommonJS) ([uncompressed](mdast.js) and [minified](mdast.min.js)): | ||
UMD (globals/AMD/CommonJS) ([uncompressed](mdast.js) and [compressed](mdast.min.js)): | ||
@@ -240,54 +240,99 @@ ```html | ||
Parameters: | ||
Parse a markdown document into an abstract syntax tree. | ||
- `value` (`string`) — Markdown document; | ||
- `options` (`Object`, `null`, `undefined`) — Optional options: | ||
- `gfm` (`boolean`, default: `true`). See [Github Flavoured Markdown](doc/Options.md#github-flavoured-markdown); | ||
- `tables` (`boolean`, default: `true`). See [Tables](doc/Options.md#tables); | ||
- `yaml` (`boolean`, default: `true`). See [YAML](doc/Options.md#yaml); | ||
- `commonmark` (`boolean`, default: `false`). See [CommonMark](doc/Options.md#commonmark); | ||
- `footnotes` (`boolean`, default: `false`). See [Footnotes](doc/Options.md#footnotes). | ||
- `pedantic` (`boolean`, default: `false`). See [Pedantic](doc/Options.md#pedantic); | ||
- `breaks` (`boolean`, default: `false`). See [Breaks](doc/Options.md#breaks); | ||
**Signatures** | ||
- `ast = mdast.parse(value)`; | ||
- `ast = mdast.parse(value, options)`. | ||
**Parameters** | ||
- `value` (`string`) — Markdown document; | ||
- `options` (`Object`) — Settings: | ||
- `gfm` (`boolean`, default: `true`) — See [Github Flavoured Markdown](doc/Options.md#github-flavoured-markdown); | ||
- `tables` (`boolean`, default: `true`) — See [Tables](doc/Options.md#tables); | ||
- `yaml` (`boolean`, default: `true`) — See [YAML](doc/Options.md#yaml); | ||
- `commonmark` (`boolean`, default: `false`) — See [CommonMark](doc/Options.md#commonmark); | ||
- `footnotes` (`boolean`, default: `false`) — See [Footnotes](doc/Options.md#footnotes); | ||
- `pedantic` (`boolean`, default: `false`) — See [Pedantic](doc/Options.md#pedantic); | ||
- `breaks` (`boolean`, default: `false`) — See [Breaks](doc/Options.md#breaks). | ||
All options (including the options object itself) can be `null` or `undefined` to default to their default values. | ||
Returns: An `Object`. See [Nodes](doc/Nodes.md) for the AST specification. | ||
**Returns** | ||
`Object`: see [Nodes](doc/Nodes.md) for the AST specification. | ||
### [mdast](#api).stringify([ast](doc/Nodes.md#node), [options](doc/Options.md#stringify)?) | ||
Parameters: | ||
Stringify an abstract syntax tree into a markdown document. | ||
- `ast` (`Object`) — An AST as returned by [`mdast.parse()`](#mdastparsevalue-options); | ||
- `options` (`Object`) — Optional options: | ||
- `setext` (`boolean`, default: `false`). See [Setext Headings](doc/Options.md#setext-headings); | ||
- `closeAtx` (`boolean`, default: `false`). See [Closed ATX Headings](doc/Options.md#closed-atx-headings); | ||
- `looseTable` (`boolean`, default: `false`). See [Loose Tables](doc/Options.md#loose-tables); | ||
- `spacedTable` (`boolean`, default: `true`). See [Spaced Tables](doc/Options.md#spaced-tables); | ||
- `referenceLinks` (`boolean`, default: `false`). See [Reference Links](doc/Options.md#reference-links); | ||
- `fence: string` (`"~"` or ``"`"``, default: ``"`"``). See [Fence](doc/Options.md#fence); | ||
- `fences` (`boolean`, default: `false`). See [Fences](doc/Options.md#fences); | ||
- `bullet` (`"-"`, `"*"`, or `"+"`, default: `"-"`). See [List Item Bullets](doc/Options.md#list-item-bullets); | ||
- `rule` (`"-"`, `"*"`, or `"_"`, default: `"*"`). See [Horizontal Rules](doc/Options.md#horizontal-rules); | ||
- `ruleRepetition` (`number`, default: 3). See [Horizontal Rules](doc/Options.md#horizontal-rules); | ||
- `ruleSpaces` (`boolean`, default `true`). See [Horizontal Rules](doc/Options.md#horizontal-rules); | ||
- `strong` (`"_"`, or `"*"`, default `"*"`). See [Emphasis Markers](doc/Options.md#emphasis-markers); | ||
- `emphasis` (`"_"`, or `"*"`, default `"_"`). See [Emphasis Markers](doc/Options.md#emphasis-markers). | ||
**Signatures** | ||
- `value = mdast.stringify(ast)`; | ||
- `value = mdast.stringify(ast, options)`. | ||
**Parameters** | ||
- `ast` (`Object`) — An AST as returned by [`mdast.parse()`](#mdastparsevalue-options); | ||
- `options` (`Object`) — Settings: | ||
- `setext` (`boolean`, default: `false`). See [Setext Headings](doc/Options.md#setext-headings); | ||
- `closeAtx` (`boolean`, default: `false`). See [Closed ATX Headings](doc/Options.md#closed-atx-headings); | ||
- `looseTable` (`boolean`, default: `false`). See [Loose Tables](doc/Options.md#loose-tables); | ||
- `spacedTable` (`boolean`, default: `true`). See [Spaced Tables](doc/Options.md#spaced-tables); | ||
- `referenceLinks` (`boolean`, default: `false`). See [Reference Links](doc/Options.md#reference-links); | ||
- `fence: string` (`"~"` or ``"`"``, default: ``"`"``). See [Fence](doc/Options.md#fence); | ||
- `fences` (`boolean`, default: `false`). See [Fences](doc/Options.md#fences); | ||
- `bullet` (`"-"`, `"*"`, or `"+"`, default: `"-"`). See [List Item Bullets](doc/Options.md#list-item-bullets); | ||
- `rule` (`"-"`, `"*"`, or `"_"`, default: `"*"`). See [Horizontal Rules](doc/Options.md#horizontal-rules); | ||
- `ruleRepetition` (`number`, default: 3). See [Horizontal Rules](doc/Options.md#horizontal-rules); | ||
- `ruleSpaces` (`boolean`, default `true`). See [Horizontal Rules](doc/Options.md#horizontal-rules); | ||
- `strong` (`"_"`, or `"*"`, default `"*"`). See [Emphasis Markers](doc/Options.md#emphasis-markers); | ||
- `emphasis` (`"_"`, or `"*"`, default `"_"`). See [Emphasis Markers](doc/Options.md#emphasis-markers). | ||
All options (including the options object itself) can be `null` or `undefined` to default to their default values. | ||
Returns: A `string`. | ||
**Returns** | ||
`string`: a document formatted in markdown. | ||
### [mdast](#api).use([plugin](#function-pluginast-options-mdast)) | ||
Creates a version of **mdast** which uses the given `plugin` to modify the AST after [`mdast.parse()`](#mdastparsevalue-options) is invoked. | ||
Change the way [`mdast`](#api) works by using a [`plugin`](#function-pluginast-options-mdast). | ||
The returned object functions just like **mdast** (it also has `use`, `parse`, and `stringify` methods), but caches the `use`d plugins. | ||
**Signatures** | ||
This provides the ability to chain `use` calls to use multiple plugins, but ensures the functioning of **mdast** does not change for other dependants. | ||
- `mdast = mdast.use(plugin)`; | ||
- `mdast = mdast.use(plugins)`. | ||
#### function plugin\([ast](doc/Nodes.md#node), options, [mdast](#api)\) | ||
**Parameters** | ||
- `plugin` (`Function`) — See [`plugin`](#function-pluginast-options-mdast); | ||
- `plugins` (`Array.<Function>`) — A list of [`plugin`](#function-pluginast-options-mdast)s. | ||
**Returns** | ||
`Object`: an instance of MDAST: The returned object functions just like **mdast** (it also has `use`, `parse`, and `stringify` methods), but caches the `use`d plugins. | ||
This provides the ability to chain `use` calls to use multiple plugins, but ensures the functioning of the **mdast** module does not change for other dependants. | ||
#### function plugin([ast](doc/Nodes.md#node), [options](doc/Options.md#parse), [mdast](#api)) | ||
A plugin is a simple function which is invoked each time a document is [`mdast.parse()`](#mdastparsevalue-options)d. A plugin should change the [AST](doc/Nodes.md#node) to add or remove nodes, or change the **mdast** instance. | ||
**Signatures** | ||
- `plugin(ast, options, mdast)`; | ||
- `error = plugin(ast, options, mdast)`. | ||
**Parameters** | ||
- `ast` (`Object`) — An AST as returned by [`mdast.parse()`](#mdastparsevalue-options); | ||
- `options` (`Object`) — Options passed to [`mdast.parse()`](#mdastparsevalue-options); | ||
- `mdast` (`Object`) — Context on which [`mdast.parse()`](#mdastparsevalue-options) was invoked. | ||
**Returns** | ||
`undefined` or `Error`, which in the later case will be thrown. | ||
## CLI | ||
@@ -336,8 +381,12 @@ | ||
On a MacBook Air, it parser more than 3 megabytes of markdown per second, depending on how much markup v.s. plain text the document contains, and which language the document is in, that’s more than the [entire works of Shakespeare](http://www.gutenberg.org/ebooks/100), in under two seconds. | ||
On a MacBook Air, it parses ± 322Kb of markdown (in 214 documents) per second. | ||
```text | ||
benchmarks * 76 fixtures (total: 50Kb markdown) | ||
63 op/s » mdast.parse | ||
145 op/s » mdast.stringify | ||
214 fixtures (total: 80.62Kb) | ||
4 op/s » mdast.parse w/ `gfm: true`, `yaml: true`, and `tables: true` | ||
69 op/s » mdast.stringify w/ `gfm: true`, `yaml: true`, and `tables: true` | ||
4 op/s » mdast.parse w/ `gfm: false`, `yaml: false`, and `tables: false` | ||
70 op/s » mdast.stringify w/ `gfm: false`, `yaml: false`, and `tables: false` | ||
4 op/s » mdast.parse w/ `gfm: true`, `yaml: true`, `tables: true`, and `commonmark: true` | ||
72 op/s » mdast.stringify w/ `gfm: true`, `yaml: true`, `tables: true`, and `commonmark: true` | ||
``` | ||
@@ -344,0 +393,0 @@ |
151063
13
3182
397
6
+ Addedcamelcase@^1.0.0
+ Addedcamelcase@1.2.1(transitive)