見出し内の太字パターン(との両方)を検出 #22
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要
見出し内の太字記号(
**text**
、__text__
)を検出し、削除を提案する機能をno-ai-emphasis-patterns
ルールに追加しました。#23
背景
AIが生成する文章では、見出しに太字を使用するパターン(例:
# **重要なお知らせ**
)がよく見られます。しかし、Markdownでは見出し自体が強調要素であるため、追加の太字は冗長です。変更内容
no-ai-emphasis-patterns.ts
に[Syntax.Heading]
ハンドラーを追加**
と__
の両方)を検出disableHeadingEmphasisPatterns
を追加検出例
これらは以下のように修正されます。
テスト
Breaking Changes
なし(新機能の追加のみ)