Skip to content

Commit 5694a9c

Browse files
committed
Rename mdast-html > remark-html
1 parent 57fede3 commit 5694a9c

File tree

17 files changed

+98
-98
lines changed

17 files changed

+98
-98
lines changed

.eslintignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ build/
22
components/
33
coverage/
44
build.js
5-
mdast-html.js
6-
mdast-html.min.js
5+
remark-html.js
6+
remark-html.min.js

.jscs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"coverage/",
66
"node_modules/",
77
"build.js",
8-
"mdast-html.js",
9-
"mdast-html.min.js"
8+
"remark-html.js",
9+
"remark-html.min.js"
1010
],
1111
"jsDoc": {
1212
"checkAnnotations": "jsdoc3",

bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"name": "mdast-html",
3-
"main": "mdast-html.js",
4-
"description": "Compile Markdown to HTML with mdast",
2+
"name": "remark-html",
3+
"main": "remark-html.js",
4+
"description": "Compile Markdown to HTML with remark",
55
"license": "MIT",
66
"keywords": [
77
"markdown",
88
"html",
99
"stringify",
1010
"compile",
11-
"mdast"
11+
"remark"
1212
],
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/wooorm/mdast-html.git"
15+
"url": "https://github.com/wooorm/remark-html.git"
1616
},
1717
"author": {
1818
"name": "Titus Wormer",

component.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"name": "mdast-html",
2+
"name": "remark-html",
33
"version": "1.2.1",
4-
"description": "Compile Markdown to HTML with mdast",
4+
"description": "Compile Markdown to HTML with remark",
55
"license": "MIT",
66
"keywords": [
77
"markdown",
88
"html",
99
"stringify",
1010
"compile",
11-
"mdast"
11+
"remark"
1212
],
1313
"dependencies": {
1414
"wooorm/collapse-white-space": "^1.0.0",
@@ -19,7 +19,7 @@
1919
"wooorm/trim-lines": "^1.0.0",
2020
"sindresorhus/object-assign": "^4.0.1"
2121
},
22-
"repository": "wooorm/mdast-html",
22+
"repository": "wooorm/remark-html",
2323
"scripts": [
2424
"index.js",
2525
"lib/"

doc/commonmark.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ This document highlights the current differences from CommonMark:
77
but are valid HTML. The argument given in the spec, “because it makes
88
the grammar too ambiguous”, seems quite a weird reason for me
99
to build extra code which removes this functionality from the excellent
10-
entity parser **mdast** uses: [he](https://github.com/mathiasbynens/he).
10+
entity parser **remark** uses.
1111

12-
2. **mdast-html** adds two extra entities when compiling to HTML,
12+
2. **remark-html** adds two extra entities when compiling to HTML,
1313
namely, `` ` `` (tick) and `'` (single quote), which are rendered
1414
as ``` and `'`. The first has to do with better support
1515
for IE8 (a tick can break out of an attribute or comment), the second
1616
for an optional future option to use single quotes as attribute
1717
quotes.
1818

19-
3. **mdast-html** ignores any markdown syntax in image `alt` attributes,
19+
3. **remark-html** ignores any markdown syntax in image `alt` attributes,
2020
whereas commonmark strips it from the alt attribute.
2121
Thus, `![*foo*](./bar.png)` is rendered as
2222
`<img alt="foo" src="/bar.png" />` in CommonMark, and as
23-
`<img alt="*foo*" src="/bar.png" />` in **mdast-html**.
23+
`<img alt="*foo*" src="/bar.png" />` in **remark-html**.

history.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@
55
1.2.1 / 2015-09-13
66
==================
77

8-
* Fix output of unknown node with multiple children ([a2d6c57](https://github.com/wooorm/mdast-html/commit/a2d6c57))
9-
* Add a reference to mdast-autolink-headings ([9a3470c](https://github.com/wooorm/mdast-html/commit/9a3470c))
10-
* Fix default class names by moving to transformer ([f2d1a29](https://github.com/wooorm/mdast-html/commit/f2d1a29))
8+
* Fix output of unknown node with multiple children ([a2d6c57](https://github.com/wooorm/remark-html/commit/a2d6c57))
9+
* Add a reference to mdast-autolink-headings ([9a3470c](https://github.com/wooorm/remark-html/commit/9a3470c))
10+
* Fix default class names by moving to transformer ([f2d1a29](https://github.com/wooorm/remark-html/commit/f2d1a29))
1111

1212
1.2.0 / 2015-09-09
1313
==================
1414

15-
* Add support for compiling unknown nodes ([f3b35fe](https://github.com/wooorm/mdast-html/commit/f3b35fe))
15+
* Add support for compiling unknown nodes ([f3b35fe](https://github.com/wooorm/remark-html/commit/f3b35fe))
1616

1717
1.1.0 / 2015-09-07
1818
==================
1919

20-
* Add support for HTML integrations on nodes ([e713382](https://github.com/wooorm/mdast-html/commit/e713382))
20+
* Add support for HTML integrations on nodes ([e713382](https://github.com/wooorm/remark-html/commit/e713382))
2121

2222
1.0.0 / 2015-08-17
2323
==================
2424

25-
* Update dependencies, dev-dependencies ([7c498ea](https://github.com/wooorm/mdast-html/commit/7c498ea))
25+
* Update dependencies, dev-dependencies ([7c498ea](https://github.com/wooorm/remark-html/commit/7c498ea))
2626

2727
0.1.1 / 2015-07-12
2828
==================
2929

30-
* Remove use of peer-dependencies ([fd8bc9e](https://github.com/wooorm/mdast-html/commit/fd8bc9e))
31-
* Update mdast, mdast-lint ([dc6494b](https://github.com/wooorm/mdast-html/commit/dc6494b))
32-
* Update mdast ([b14bfd5](https://github.com/wooorm/mdast-html/commit/b14bfd5))
33-
* Remove final newline in empty document ([2256a7a](https://github.com/wooorm/mdast-html/commit/2256a7a))
34-
* Fix initial spacing in paragraph after escaped newline ([92636d4](https://github.com/wooorm/mdast-html/commit/92636d4))
35-
* Fix YAML in commonmark tests ([b52019b](https://github.com/wooorm/mdast-html/commit/b52019b))
30+
* Remove use of peer-dependencies ([fd8bc9e](https://github.com/wooorm/remark-html/commit/fd8bc9e))
31+
* Update mdast, mdast-lint ([dc6494b](https://github.com/wooorm/remark-html/commit/dc6494b))
32+
* Update mdast ([b14bfd5](https://github.com/wooorm/remark-html/commit/b14bfd5))
33+
* Remove final newline in empty document ([2256a7a](https://github.com/wooorm/remark-html/commit/2256a7a))
34+
* Fix initial spacing in paragraph after escaped newline ([92636d4](https://github.com/wooorm/remark-html/commit/92636d4))
35+
* Fix YAML in commonmark tests ([b52019b](https://github.com/wooorm/remark-html/commit/b52019b))
3636

3737
0.1.0 / 2015-06-21
3838
==================

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* @author Titus Wormer
33
* @copyright 2015 Titus Wormer
44
* @license MIT
5-
* @module mdast:html
6-
* @fileoverview Compile Markdown to HTML with mdast.
5+
* @module remark:html
6+
* @fileoverview Compile Markdown to HTML with remark.
77
*/
88

99
'use strict';
@@ -18,11 +18,11 @@ var transformer = require('./lib/transformer');
1818
/**
1919
* Attach an HTML compiler.
2020
*
21-
* @param {MDAST} mdast - Instance.
21+
* @param {Remark} remark - Instance.
2222
* @param {Object?} [options] - Configuration.
2323
*/
24-
function plugin(mdast, options) {
25-
var MarkdownCompiler = mdast.Compiler;
24+
function plugin(remark, options) {
25+
var MarkdownCompiler = remark.Compiler;
2626
var ancestor = MarkdownCompiler.prototype;
2727
var proto;
2828
var key;
@@ -63,7 +63,7 @@ function plugin(mdast, options) {
6363
proto[key] = compilers[key];
6464
}
6565

66-
mdast.Compiler = HTMLCompiler;
66+
remark.Compiler = HTMLCompiler;
6767

6868
return transformer;
6969
}

lib/compilers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @author Titus Wormer
33
* @copyright 2015 Titus Wormer
44
* @license MIT
5-
* @module mdast:html:compilers
5+
* @module remark:html:compilers
66
* @fileoverview Compilers to transform mdast nodes to HTML.
77
*/
88

lib/h.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @author Titus Wormer
33
* @copyright 2015 Titus Wormer
44
* @license MIT
5-
* @module mdast:html:h
5+
* @module remark:html:h
66
* @fileoverview
77
* Create HTML nodes. Loosely inspired by
88
* https://github.com/Matt-Esch/virtual-dom/blob/master/

lib/transformer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* @author Titus Wormer
33
* @copyright 2015 Titus Wormer
44
* @license MIT
5-
* @module mdast:html:compilers
6-
* @fileoverview Compilers to transform mdast nodes to HTML.
5+
* @module remark:html:compilers
6+
* @fileoverview AST transformer for HTML.
77
*/
88

99
'use strict';

0 commit comments

Comments
 (0)