Skip to content

Commit 384629d

Browse files
committed
Replace internal dependency of mdast > remark
1 parent 766f545 commit 384629d

File tree

18 files changed

+211
-219
lines changed

18 files changed

+211
-219
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
1010

11-
[*.{json,svg,mdastrc,eslintrc}]
11+
[*.{json,svg,remarkrc,eslintrc}]
1212
indent_size = 2
1313

1414
[*.md]
File renamed without changes.
File renamed without changes.

history.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--mdast setext-->
1+
<!--remark setext-->
22

33
<!--lint disable no-multiple-toplevel-headings-->
44

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
"istanbul": "^0.3.0",
2929
"jscs": "^2.0.0",
3030
"jscs-jsdoc": "^1.0.0",
31-
"mdast": "^3.0.0-alpha.5",
32-
"mdast-comment-config": "^2.0.0-alpha.1",
33-
"mdast-lint": "^2.0.0-alpha.1",
34-
"mdast-toc": "^1.0.0",
35-
"mdast-usage": "^2.0.0-alpha.1",
31+
"remark": "^3.0.0",
32+
"remark-comment-config": "^2.0.0",
33+
"remark-lint": "^2.0.0",
34+
"remark-toc": "^2.0.0",
35+
"remark-usage": "^2.0.0",
3636
"mocha": "^2.0.0"
3737
},
3838
"scripts": {
@@ -46,7 +46,7 @@
4646
"make": "npm run lint && npm run test-coverage",
4747
"bundle": "browserify --no-builtins index.js -s remarkGitHub > remark-github.js",
4848
"postbundle": "esmangle remark-github.js > remark-github.min.js",
49-
"build-md": "mdast . --quiet",
49+
"build-md": "remark . --quiet",
5050
"build": "npm run bundle && npm run build-md"
5151
}
5252
}

readme.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# remark-github [![Build Status](https://img.shields.io/travis/wooorm/remark-github.svg)](https://travis-ci.org/wooorm/remark-github) [![Coverage Status](https://img.shields.io/codecov/c/github/wooorm/remark-github.svg)](https://codecov.io/github/wooorm/remark-github)
22

3-
> :warning: **mdast is currently being renamed to remark** :warning:
4-
>
5-
> This means all plug-ins and relating projects change too, causing many
6-
> changes across the ecosystem. Expect the dust to settle in roughly a day.
7-
>
8-
> See this project at the previous stable commit
9-
> [c4a51d1](https://github.com/wooorm/remark-github/commit/c4a51d1).
10-
113
Auto-link references to commits, issues, pull-requests, and users like GitHub: [Writing on GitHub](https://help.github.com/articles/writing-on-github/#references).
124

135
## Installation

test/fixtures/issue-project/input.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ A project-SHA is not relative to the current project.
44

55
GitHub’s project names can include alphabetical characters, dashes, and full-stops. They may end in a TLD (such as `.com`), but may not end in `.git` (for obvious reasons).
66

7-
- This is a valid issue: wooorm/mdast#1;
8-
- So is this: wooorm/mdast#123456789.
7+
- This is a valid issue: wooorm/remark#1;
8+
- So is this: wooorm/remark#123456789.
99

1010
They work here
11-
wooorm/mdast#1
11+
wooorm/remark#1
1212

1313
and here
14-
wooorm/mdast#1
14+
wooorm/remark#1
1515

16-
Usernames: this is not a valid, -wooorm/mdast#1; nor is this wooorm-/mdast#1; but this is w-w/mdast#1, and so is w/mdast#1 and ww/mdast#1.
16+
Usernames: this is not a valid, -wooorm/remark#1; nor is this wooorm-/remark#1; but this is w-w/remark#1, and so is w/remark#1 and ww/remark#1.
1717

1818
Project names: this is not a valid, wooorm/c.git#1; but this is wooorm/c#1, so is w/w#1, and ww/.gitconfig#1.
1919

test/fixtures/issue-project/output.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ A project-SHA is not relative to the current project.
44

55
GitHub’s project names can include alphabetical characters, dashes, and full-stops. They may end in a TLD (such as `.com`), but may not end in `.git` (for obvious reasons).
66

7-
- This is a valid issue: [wooorm/mdast#1](https://github.com/wooorm/mdast/issues/1);
8-
- So is this: [wooorm/mdast#123456789](https://github.com/wooorm/mdast/issues/123456789).
7+
- This is a valid issue: [wooorm/remark#1](https://github.com/wooorm/remark/issues/1);
8+
- So is this: [wooorm/remark#123456789](https://github.com/wooorm/remark/issues/123456789).
99

1010
They work here
11-
[wooorm/mdast#1](https://github.com/wooorm/mdast/issues/1)
11+
[wooorm/remark#1](https://github.com/wooorm/remark/issues/1)
1212

1313
and here
14-
[wooorm/mdast#1](https://github.com/wooorm/mdast/issues/1)
14+
[wooorm/remark#1](https://github.com/wooorm/remark/issues/1)
1515

16-
Usernames: this is not a valid, -wooorm/mdast#1; nor is this wooorm-/mdast#1; but this is [w-w/mdast#1](https://github.com/w-w/mdast/issues/1), and so is [w/mdast#1](https://github.com/w/mdast/issues/1) and [ww/mdast#1](https://github.com/ww/mdast/issues/1).
16+
Usernames: this is not a valid, -wooorm/remark#1; nor is this wooorm-/remark#1; but this is [w-w/remark#1](https://github.com/w-w/remark/issues/1), and so is [w/remark#1](https://github.com/w/remark/issues/1) and [ww/remark#1](https://github.com/ww/remark/issues/1).
1717

1818
Project names: this is not a valid, wooorm/c.git#1; but this is [wooorm/c#1](https://github.com/wooorm/c/issues/1), so is [w/w#1](https://github.com/w/w/issues/1), and [ww/.gitconfig#1](https://github.com/ww/.gitconfig/issues/1).
1919

test/fixtures/issue-user/output.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ A user-issue is relative to the project, but relative to the user’s fork.
44

55
GitHub’s usernames can contain alphabetical characters and dashes, but can neither begin nor end with a dash. Additionally, the length of a username can be between 1 and 39 characters (both including).
66

7-
- This is a valid issue: [wooorm#1](https://github.com/wooorm/mdast/issues/1);
8-
- So is this: [wooorm#123456789](https://github.com/wooorm/mdast/issues/123456789).
7+
- This is a valid issue: [wooorm#1](https://github.com/wooorm/remark/issues/1);
8+
- So is this: [wooorm#123456789](https://github.com/wooorm/remark/issues/123456789).
99

1010
They work here
11-
[wooorm#1](https://github.com/wooorm/mdast/issues/1)
11+
[wooorm#1](https://github.com/wooorm/remark/issues/1)
1212

1313
and here
14-
[wooorm#1](https://github.com/wooorm/mdast/issues/1)
14+
[wooorm#1](https://github.com/wooorm/remark/issues/1)
1515

16-
This is not a valid, -wooorm#1; nor is this wooorm-#1; but this is [w-w#1](https://github.com/w-w/mdast/issues/1), and so is [w#1](https://github.com/w/mdast/issues/1) and [ww#1](https://github.com/ww/mdast/issues/1).
16+
This is not a valid, -wooorm#1; nor is this wooorm-#1; but this is [w-w#1](https://github.com/w-w/remark/issues/1), and so is [w#1](https://github.com/w/remark/issues/1) and [ww#1](https://github.com/ww/remark/issues/1).
1717

1818
This is too long: wooormwooormwooormwooormwooormwooormwooo#1 (40 character username).

test/fixtures/issue/input.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- So are these: #123456789, and: GH-123456789;
55
- And these: gH-1, Gh-1, and gh-1.
66

7-
These will always be a header in pedantic mode (mdast requires initial spaces for ATX-headings)
7+
These will always be a header in pedantic mode (remark requires initial spaces for ATX-headings)
88
#1
99

1010
Or here

0 commit comments

Comments
 (0)