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 7327d01 commit 26e07c9
Show file tree
Hide file tree
Showing 15 changed files with 293 additions and 300 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,mdastrc}]
[*.{json,remarkrc}]
indent_size = 2

[*.md]
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions component.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"repository": "wooorm/remark-lint",
"dependencies": {
"sindresorhus/plur": "^2.0.0",
"wooorm/mdast-range": "^1.0.0",
"wooorm/remark-range": "^2.0.0",
"wooorm/mdast-util-heading-style": "^1.0.0",
"wooorm/mdast-util-position": "^1.0.0",
"wooorm/mdast-util-to-string": "^1.0.0",
"wooorm/unist-util-visit": "^1.0.0",
"wooorm/mdast-zone": "^1.0.0",
"wooorm/mdast-zone": "^2.0.0",
"wooorm/vfile-sort": "^1.0.0"
},
"scripts": [
Expand Down
58 changes: 29 additions & 29 deletions doc/comparison/markdownlint.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,40 @@ rules and **remark-lint**’s rules.

| markdownlint | remark | note |
| ------------ | ----------------------------- | ---------------------------------------------------------------------------------------- |
| MD001 | heading-increment | |
| MD002 | first-heading-level | |
| MD003 | heading-style | |
| MD004 | unordered-list-marker-style | |
| MD001 | heading-increment | - |
| MD002 | first-heading-level | - |
| MD003 | heading-style | - |
| MD004 | unordered-list-marker-style | - |
| MD005 | - | mixture of `list-item-indent`, `list-item-bullet-indent`, and `list-item-content-indent` |
| MD006 | list-item-bullet-indent | |
| MD007 | list-item-bullet-indent | |
| MD006 | list-item-bullet-indent | - |
| MD007 | list-item-bullet-indent | - |
| MD009 | - | Partially by hard-break-spaces |
| MD010 | no-tabs | |
| MD010 | no-tabs | - |
| MD011 | no-shortcut-reference-link | Although a different message, this will lead you in the right direction |
| MD012 | no-consecutive-blank-lines | |
| MD013 | maximum-line-length | |
| MD014 | no-shell-dollars | |
| MD012 | no-consecutive-blank-lines | - |
| MD013 | maximum-line-length | - |
| MD014 | no-shell-dollars | - |
| MD018 | no-heading-content-indent | Only works in pedantic mode |
| MD019 | no-heading-content-indent | |
| MD019 | no-heading-content-indent | - |
| MD020 | no-heading-content-indent | Only works in pedantic mode |
| MD021 | no-heading-content-indent | |
| MD022 | no-missing-blank-lines | |
| MD023 | no-heading-indent | |
| MD024 | no-duplicate-headings | |
| MD025 | no-multiple-toplevel-headings | |
| MD026 | no-heading-punctuation | |
| MD021 | no-heading-content-indent | - |
| MD022 | no-missing-blank-lines | - |
| MD023 | no-heading-indent | - |
| MD024 | no-duplicate-headings | - |
| MD025 | no-multiple-toplevel-headings | - |
| MD026 | no-heading-punctuation | - |
| MD027 | blockquote-indentation | Won’t warn when that’s your preferred, consistent style |
| MD028 | no-blockquote-without-caret | |
| MD028 | no-blockquote-without-caret | - |
| MD029 | ordered-list-marker-value | markdownlint defaults to `one`, whereas remark-lint defaults to `ordered` |
| MD030 | list-item-indent | |
| MD031 | no-missing-blank-lines | |
| MD032 | no-missing-blank-lines | |
| MD033 | no-html | |
| MD034 | no-literal-urls | |
| MD035 | rule-style | |
| MD030 | list-item-indent | - |
| MD031 | no-missing-blank-lines | - |
| MD032 | no-missing-blank-lines | - |
| MD033 | no-html | - |
| MD034 | no-literal-urls | - |
| MD035 | rule-style | - |
| MD036 | emphasis-heading | remark-lint only warns when the emphasis is followed by a colon, but that might change. |
| MD037 | no-inline-padding | |
| MD038 | no-inline-padding | |
| MD039 | no-inline-padding | |
| MD039 | no-inline-padding | |
| MD040 | fenced-code-flag | |
| MD037 | no-inline-padding | - |
| MD038 | no-inline-padding | - |
| MD039 | no-inline-padding | - |
| MD039 | no-inline-padding | - |
| MD040 | fenced-code-flag | - |
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
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

var decamelize = require('decamelize');
var sort = require('vfile-sort');
var range = require('mdast-range');
var range = require('remark-range');
var zone = require('mdast-zone');
var internals = require('./rules');
var filter = require('./filter');
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"author": "Titus Wormer <tituswormer@gmail.com>",
"dependencies": {
"decamelize": "^1.0.0",
"mdast-range": "^1.0.0",
"remark-range": "^2.0.0",
"mdast-util-heading-style": "^1.0.0",
"mdast-util-position": "^1.0.0",
"mdast-util-to-string": "^1.0.0",
Expand All @@ -34,11 +34,11 @@
"istanbul": "^0.3.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-toc": "^1.0.0",
"mdast-validate-links": "^1.0.0",
"remark": "^3.0.0",
"remark-comment-config": "^2.0.0",
"remark-github": "^2.0.0",
"remark-toc": "^2.0.0",
"remark-validate-links": "^2.0.0",
"mocha": "^2.0.0",
"vfile": "^1.0.0"
},
Expand All @@ -52,7 +52,7 @@
"lint": "npm run lint-api && npm run lint-style",
"make": "npm run lint && npm run test-coverage",
"build-rules": "node script/build-rule-documentation.js",
"build-md": "mdast . --quiet",
"build-md": "remark . --quiet --frail",
"build-bundle": "browserify index.js --bare -s remarkLint > remark-lint.js",
"postbuild-bundle": "esmangle remark-lint.js > remark-lint.min.js",
"build": "npm run build-rules && npm run build-md && npm run build-bundle"
Expand Down
8 changes: 0 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

[![Build Status](https://img.shields.io/travis/wooorm/remark-lint.svg)](https://travis-ci.org/wooorm/remark-lint) [![Coverage Status](https://img.shields.io/codecov/c/github/wooorm/remark-lint.svg)](https://codecov.io/github/wooorm/remark-lint)

> :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-lint** is a markdown code style linter. Another linter? Yes.
Ensuring the markdown you (and contributors) write is of great quality will
provide better rendering in all the different markdown parsers, and makes
Expand Down
Loading

0 comments on commit 26e07c9

Please sign in to comment.