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

fix: リンクの後にスペースを強制する処理が正常に動作していない不具合を修正 #27

Merged
merged 1 commit into from
May 6, 2021

Conversation

book000
Copy link
Contributor

@book000 book000 commented May 6, 2021

#26 と同じように、textlint-rule-ja-space-around-link にて、after: true を設定したうえでリンクの後にスペースを入れなくてもエラーが発生しない問題を修正しました。

昨日ご教示頂いたコードを参考にテストコードを書いたのですが、これで正しいのか自信が持てておりません。問題があればご指摘いただけたらと思います。

よろしくお願いいたします。

@@ -119,6 +119,34 @@ tester.run("Link周りのスペース", rule, {
},
],
},
{
text: "これは[README](./README.md)おかしい",
output: "これは [README](./README.md)おかしい",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

textの内容を書いたらoutputの内容になるという感じにテストですね。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この場合はbefore: true なので前にスペースを入れる結果になれば正しいと思います。

@azu azu merged commit 3f8c438 into textlint-ja:master May 6, 2021
@book000 book000 deleted the fix/force-after-space-rule branch May 6, 2021 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants