Skip to content

Commit c99ca1e

Browse files
committed
exposition-onlyの斜体・バッジ表示に対応
1 parent ece4449 commit c99ca1e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

meta.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ def run(self, text):
198198
text = '<div class="identifier-type">{}</div>'.format('customization point object') + text
199199
else:
200200
text = '<div class="identifier-type">{}</div>'.format(id_type) + text
201+
if 'exposition-only' in meta:
202+
# 見出しを斜体にするためのクラスを追加
203+
text = text.replace('<h1>', '<h1 class="exposition-only">')
204+
# 説明専用バッジを追加
205+
text = text.replace('</h1>', '<span class="cpp exposition-only" title="説明専用"></span></h1>')
201206
return text
202207

203208

0 commit comments

Comments
 (0)