Skip to content

Commit

Permalink
Replace internal dependency of mdast > remark
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Dec 26, 2015
1 parent 68f173a commit 848dfd4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{json,html,svg,css,mdastrc,eslintrc}]
[*.{json,html,svg,css,remarkrc,eslintrc}]
indent_size = 2

[*.md]
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion history.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--mdast setext-->
<!--remark setext-->

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

Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"istanbul": "^0.4.0",
"jscs": "^2.0.0",
"jscs-jsdoc": "^1.0.0",
"mdast": "^3.0.0-alpha.5",
"mdast-comment-config": "^2.0.0-alpha.1",
"mdast-github": "^2.0.0-alpha.1",
"mdast-lint": "^2.0.0-alpha.1",
"mdast-toc": "^1.0.0",
"remark": "^3.0.0",
"remark-comment-config": "^2.0.0",
"remark-github": "^2.0.0",
"remark-lint": "^2.0.0",
"remark-toc": "^2.0.0",
"mocha": "^2.0.0"
},
"scripts": {
Expand All @@ -46,7 +46,7 @@
"lint-style": "jscs --reporter inline .",
"lint": "npm run lint-api && npm run lint-style",
"make": "npm run lint && npm run test-coverage",
"build-md": "mdast . --quiet",
"build-md": "remark . --quiet --frail",
"build": "npm run build-md"
}
}
8 changes: 0 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# 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)

> :warning: **mdast is currently being renamed to remark** :warning:
>
> This means all plug-ins and relating projects change too, causing many
> changes across the ecosystem. Expect the dust to settle in roughly a day.
>
> See this project at the previous stable commit
> [c4a51d1](https://github.com/wooorm/remark-github/commit/c4a51d1).
[**remark**](https://github.com/wooorm/remark) plug-in to validate if links to
headings and files in markdown point to existing things.

Expand Down
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
var assert = require('assert');
var hook = require('hook-std');
var fs = require('fs');
var mdast = require('mdast');
var cli = require('mdast/lib/cli');
var remark = require('remark');
var cli = require('remark/lib/cli');
var links = require('..');

/*
Expand Down Expand Up @@ -75,7 +75,7 @@ describe('remark-validate-links', function () {

it('should throw an error when not on the CLI', function () {
assert.throws(function () {
mdast().use(links);
remark().use(links);
}, /Error: remark-validate-links only works on the CLI/);
});

Expand Down

0 comments on commit 848dfd4

Please sign in to comment.