Skip to content

るびま lint: リンク文字列末尾の疑問符・感嘆符では全角空白の警告を出さない#641

Merged
neko314 merged 1 commit into
rubima:masterfrom
hokurikurb:fix-rubima-lint
Jan 27, 2026
Merged

るびま lint: リンク文字列末尾の疑問符・感嘆符では全角空白の警告を出さない#641
neko314 merged 1 commit into
rubima:masterfrom
hokurikurb:fix-rubima-lint

Conversation

@taketo1113
Copy link
Copy Markdown
Contributor

るびま lint (editing_tools/rubima-lint.rb)の「疑問符・感嘆符の後には全角空白が必要です。」の warning の出力条件の修正です。

リンク文字列末尾に感嘆符(!or?)がある場合に、「疑問符・感嘆符の後には全角空白が必要です。」の warning の出力され、オートコレクトで不要な全角空白が追加されるので、リンク文字列末尾の感嘆符については warning を出力しないように変更しています。

再現手順

以下の sample.md のマークダウンファイルに対して editing_tools/rubima-lint.rb を実行する。

$ bundle exec editing_tools/rubima-lint.rb sample.md

# sample.md
てすと!全角空白が必要なケース。
てすと! 全角空白あり。
[リンク文字列!](https://example.com)

期待する挙動

リンク文字列末尾に感嘆符(!)がある場合の4行目で「疑問符・感嘆符の後には全角空白が必要です。」の warning が出力されないこと。

$ bundle exec editing_tools/rubima-lint.rb sample.md
1 warning(s)
[Correctable] 疑問符・感嘆符の後には全角空白が必要です。 : 2行目 : てすと!全角空白が必要なケース。

実際の挙動

リンク文字列末尾に感嘆符(!)がある場合の4行目で「疑問符・感嘆符の後には全角空白が必要です。」の warning が出力されること。

$ bundle exec editing_tools/rubima-lint.rb sample.md
2 warning(s)
[Correctable] 疑問符・感嘆符の後には全角空白が必要です。 : 2行目 : てすと!全角空白が必要なケース。
[Correctable] 疑問符・感嘆符の後には全角空白が必要です。 : 4行目 : [リンク文字列!](https://example.com)

@neko314
Copy link
Copy Markdown
Contributor

neko314 commented Jan 27, 2026

リンク文字列末尾に感嘆符(!or?)がある場合

なるほどー...!!

Copy link
Copy Markdown
Contributor

@neko314 neko314 left a comment

Choose a reason for hiding this comment

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

発見と修正ありがとうございます!

@neko314 neko314 merged commit 6ef6c0f into rubima:master Jan 27, 2026
1 check passed
@taketo1113 taketo1113 deleted the fix-rubima-lint branch January 27, 2026 13:23
@taketo1113
Copy link
Copy Markdown
Contributor Author

確認&マージありがとうございます!

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