textlint-rule / textlint-rule-ginger

textlint rule to check your English grammar with Ginger Proofreading
6 stars 3 forks source link

Use IgnoreNodeManager for filtering Code node #31

Closed azu closed 8 years ago

azu commented 8 years ago

Hi @nodaguti , I've updated dependecies and improved Code filtering logic.

This is unexpected error.

$ echo "\`var a = i;\` is code" > output.md
$ textlint -f pretty-error --rule ginger output.md
✓ ginger: code -> Code
/Users/azu/.ghq/github.com/azu/teasa/output.md:1:1
       v
    0.
    1. `var a = i;` is code
    2.
       ^

✖ 1 problem (1 error, 0 warnings)
✓ 1 fixable problem.
Try to run: $ textlint --fix [file]

After

No error.

What do you think?

nodaguti commented 8 years ago

Great improvements! Thank you very much.