-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add options: checkLink, checkBlockQuote, checkEmphasis, checkHeader #35
Conversation
…checkEmphasis, checkHeader
…eckEmphasis, checkHeader
test/textlintrc-test.js
Outdated
@@ -82,6 +82,61 @@ describe(".textlinrc test", function() { | |||
assert(result.messages[1].column === 8); | |||
}); | |||
}); | |||
it("should not visit Link, Image, BlockQuote, Emphasis by default", async function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test/textlintrc-test.js
is legacy style test.
It can be moved to test/prh-rule-tester-test.js
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved legacy style tests to test/prh-rule-tester-test.js.
@azu Maybe, Because markdown: {
"type": "Image",
"title": "JQUERY",
"url": "https://example.com",
"alt": "JQUERY",
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 39
}
},
"range": [
0,
39
],
"raw": "![JQUERY](https://example.com \"JQUERY\")"
} So we can remove |
@Leko You're correct. We should file it as another issue about |
And removed checkImage option. Image type is meaningless. For more details, please refer: #35 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixed #33