textlint-rule / textlint-rule-prh

textlint rule for prh.
MIT License
82 stars 6 forks source link

Add options: checkLink, checkBlockQuote, checkEmphasis, checkHeader #35

Closed Leko closed 6 years ago

Leko commented 6 years ago

Fixed #33

Leko commented 6 years ago

@azu Maybe, Image is meaningless. For example, ![JQUERY](https://example.com) is valid always (even if checkImage is true).

Because Image has not any children of Str.

markdown: ![JQUERY](https://example.com "JQUERY") ast:

{
  "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 checkImage option and Image type from the blacklist, right?

azu commented 6 years ago

@Leko You're correct. Current Image handling is incorrect.

We should file it as another issue about Image and Code support.

azu commented 6 years ago

Release https://github.com/textlint-rule/textlint-rule-prh/releases/tag/5.1.0