textlint-rule / textlint-rule-no-unmatched-pair

textlint rule that check unmatched pairs like "(" and "]"
MIT License
7 stars 3 forks source link

`Not found pair character for [.` when using new highlight blockquote syntax #16

Closed Takashicc closed 10 months ago

Takashicc commented 10 months ago

以下のように新しくなったハイライトシンタックスを利用してtextlintを実行すると、

> [!NOTE]
> some content

Not found pair characterが発生しました。

直るとうれしいです 🙏

  125:4  error  Not found pair character for [.

You should close this sentence with ].
This pair mark is called angled bracket[]  ja-technical-writing/no-unmatched-pair
azu commented 10 months ago

ありがとうございます。

https://github.com/textlint-rule/textlint-rule-no-unmatched-pair/releases/tag/v2.0.0 でおそらく修正できたと思います。 https://github.com/textlint-rule/sentence-splitter という内部で使ってるライブラリが、 以前は ! でセンテンスを分割されてて、[ に対するペアが別のセンテンスにあって]を見つけられなくてエラーが出ていたのだと思います。

https://github.com/textlint-ja/textlint-rule-preset-ja-technical-writing https://github.com/textlint-ja/textlint-rule-preset-japanese/ のpresetにはまだこの変更を取り込んでないですが、 https://github.com/textlint-rule/sentence-splitter の古いバージョンを使ってルールは似たような問題はありそうなので、まとめてあげたいですね。

azu commented 9 months ago

https://github.com/textlint-ja/textlint-rule-preset-ja-technical-writing/releases/tag/v9.0.0 presetもアップデート