dlist の用語に {#id} でアンカーを付けられるようにする#244
Merged
Merged
Conversation
Markdown の定義リスト `- **term**:` の用語末尾に `{#id}` を書けるようにし、
その id を <dt> の id 属性として出力する。用語集(doc/glossary)の各用語へ
直接リンクできるようにするための機能追加(rurema/doctree#2634 のため)。
- DLIST_RE に任意の `{#id}` を追加し、id を $2 で拾う
- dt(s, id) に id 引数を追加し、id があれば `<dt id="...">` を出力
- 通常の dlist(id 無し)は従来どおり id 無しの <dt>
- RBS(dt)更新、test_mdcompiler にアンカー付き dlist のテストを追加
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Markdown の定義リスト
- **term**:の用語末尾に{#id}を書けるようにし、その id を<dt>の id 属性として出力します。用語集(doc/glossary)の各用語へ直接リンクできるようにするための機能追加です(rurema/doctree#2634)。DLIST_REに任意の{#id}を追加し、id を$2で拾うdt(s, id)に id 引数を追加し、id があれば<dt id="...">を出力(HTML エスケープあり)<dt>dt)更新、test_mdcompilerにアンカー付き dlist のテスト追加。full suite 17620件 pass・steep checkクリーンこれがマージされたら、doctree 側で
glossary.mdの各用語に{#slug}を付与しGemfile.lockを本コミットへバンプする PR(rurema/doctree#2634 の本体)を出します。