tani / textlint-rule-spelling

A textlint rule for spellings of languages as much as possible
GNU General Public License v3.0
8 stars 5 forks source link

HTML tags not being ignored #2

Open cfjedimaster opened 5 years ago

cfjedimaster commented 5 years ago

I've got the html plugin installed and when I run this rule, it throws errors on HTML tags (li, samp). Is there any way around that? I can add skipPatterns for that, but it would be nice if it was just ignored.

tani commented 5 years ago

HI, @cfjedimaster. Thanks for your report. I understand your issue, but I'm sorry for that I might be this issue is difficult to solve it, because I currently have no way to get text except tags in the textlint API. In the fact, This rule uses Syntax.Paragraph but, you may know, this rule actually should use Syntax.Str. However, Syntax.Str causes some error in textlint-util-to-string. Thus I have to fix the utils before fixing this issue. Could you give me time for a week? I'll tackle this issue.

cfjedimaster commented 5 years ago

Absolutely and thank you.