Skip to content

Commit 533bf5f

Browse files
committed
ページタイトルをキーワードリンクの対象から外す
1 parent 8f04104 commit 533bf5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

defined_words.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@
124124

125125
import xml.etree.ElementTree as etree
126126

127-
# リンク・コード・見出しなどの内部は自動リンクの対象としない。除外タグ判定用正規表現
128-
_RE_EXCLUDED_TAGS = re.compile(r'^(?:a|code|pre|kbd|dfn)$', re.IGNORECASE)
127+
# リンク・コード・タイトルなどの内部は自動リンクの対象としない。除外タグ判定用正規表現
128+
_RE_EXCLUDED_TAGS = re.compile(r'^(?:a|code|pre|kbd|dfn|h1)$', re.IGNORECASE)
129129

130130
# 自動リンク対象を英単語境界に一致させる必要があるかの判定用正規表現
131131
_RE_WBEG = re.compile(r'^[\p{Ll}\p{Lu}_0-9]')

0 commit comments

Comments
 (0)