Skip to content
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

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

Closed
Takashicc opened this issue Nov 24, 2023 · 2 comments · Fixed by #17
Closed

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

Takashicc opened this issue Nov 24, 2023 · 2 comments · Fixed by #17
Labels
Type: Bug Bug or Bug fixes

Comments

@Takashicc
Copy link

以下のように新しくなったハイライトシンタックスを利用して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 azu added the Type: Bug Bug or Bug fixes label Nov 24, 2023
@azu azu linked a pull request Nov 24, 2023 that will close this issue
@azu azu closed this as completed in #17 Nov 24, 2023
@azu
Copy link
Member

azu commented Nov 24, 2023

ありがとうございます。

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
Copy link
Member

azu commented Dec 3, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants