git.iko.soy/typeable/remark-validate-links
on main help sign in
Replace internal dependency of mdast > remark
848dfd4Titus Wormer
.editorconfig+1−1
@@ -8,7 +8,7 @@ charset = utf-8
8trim_trailing_whitespace = true
8trim_trailing_whitespace = true
9insert_final_newline = true
9insert_final_newline = true
10
10
11−[*.{json,html,svg,css,mdastrc,eslintrc}]
11+[*.{json,html,svg,css,remarkrc,eslintrc}]
12indent_size = 2
12indent_size = 2
13
13
14[*.md]
14[*.md]
.mdastignore → .remarkignorerenamed

The content is the same.

.mdastrc → .remarkrcrenamed

The content is the same.

history.md+1−1
@@ -1,4 +1,4 @@
1−<!--mdast setext-->
1+<!--remark setext-->
2
2
3<!--lint disable no-multiple-toplevel-headings-->
3<!--lint disable no-multiple-toplevel-headings-->
4
4
package.json+6−6
@@ -30,11 +30,11 @@
30 "istanbul": "^0.4.0",
30 "istanbul": "^0.4.0",
31 "jscs": "^2.0.0",
31 "jscs": "^2.0.0",
32 "jscs-jsdoc": "^1.0.0",
32 "jscs-jsdoc": "^1.0.0",
33− "mdast": "^3.0.0-alpha.5",
33+ "remark": "^3.0.0",
34− "mdast-comment-config": "^2.0.0-alpha.1",
34+ "remark-comment-config": "^2.0.0",
35− "mdast-github": "^2.0.0-alpha.1",
35+ "remark-github": "^2.0.0",
36− "mdast-lint": "^2.0.0-alpha.1",
36+ "remark-lint": "^2.0.0",
37− "mdast-toc": "^1.0.0",
37+ "remark-toc": "^2.0.0",
38 "mocha": "^2.0.0"
38 "mocha": "^2.0.0"
39 },
39 },
40 "scripts": {
40 "scripts": {
@@ -46,7 +46,7 @@
46 "lint-style": "jscs --reporter inline .",
46 "lint-style": "jscs --reporter inline .",
47 "lint": "npm run lint-api && npm run lint-style",
47 "lint": "npm run lint-api && npm run lint-style",
48 "make": "npm run lint && npm run test-coverage",
48 "make": "npm run lint && npm run test-coverage",
49− "build-md": "mdast . --quiet",
49+ "build-md": "remark . --quiet --frail",
50 "build": "npm run build-md"
50 "build": "npm run build-md"
51 }
51 }
52}
52}
readme.md−8
@@ -1,13 +1,5 @@
1# remark-validate-links [![Build Status](https://img.shields.io/travis/wooorm/remark-validate-links.svg)](https://travis-ci.org/wooorm/remark-validate-links) [![Coverage Status](https://img.shields.io/codecov/c/github/wooorm/remark-validate-links.svg)](https://codecov.io/github/wooorm/remark-validate-links)
1# remark-validate-links [![Build Status](https://img.shields.io/travis/wooorm/remark-validate-links.svg)](https://travis-ci.org/wooorm/remark-validate-links) [![Coverage Status](https://img.shields.io/codecov/c/github/wooorm/remark-validate-links.svg)](https://codecov.io/github/wooorm/remark-validate-links)
2
2
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−
11[**remark**](https://github.com/wooorm/remark) plug-in to validate if links to
3[**remark**](https://github.com/wooorm/remark) plug-in to validate if links to
12headings and files in markdown point to existing things.
4headings and files in markdown point to existing things.
13
5
test/index.js+3−3
@@ -17,8 +17,8 @@
17var assert = require('assert');
17var assert = require('assert');
18var hook = require('hook-std');
18var hook = require('hook-std');
19var fs = require('fs');
19var fs = require('fs');
20−var mdast = require('mdast');
20+var remark = require('remark');
21−var cli = require('mdast/lib/cli');
21+var cli = require('remark/lib/cli');
22var links = require('..');
22var links = require('..');
23
23
24/*
24/*
@@ -75,7 +75,7 @@ describe('remark-validate-links', function () {
75
75
76 it('should throw an error when not on the CLI', function () {
76 it('should throw an error when not on the CLI', function () {
77 assert.throws(function () {
77 assert.throws(function () {
78− mdast().use(links);
78+ remark().use(links);
79 }, /Error: remark-validate-links only works on the CLI/);
79 }, /Error: remark-validate-links only works on the CLI/);
80 });
80 });
81
81