[m:] 参照のデフォルトラベルを 4.0 以降は ?. 表示にする#283
Merged
Merged
Conversation
fix rurema#282 [[m:...]] のデフォルトラベル(参照の記載文字列)が module function で 常に ".#" のまま表示され、rurema#277 で "?." 化した見出しと 4.0 以降の ページ内で表記が混在していた。Markdown ソースに [m:Kernel?.x] と 書いても markdown_to_rrd の convert_md_ref_to_rrd が MethodSpec 互換の ため ".#" へ正規化するので、記載表記に依らず発生する。 choke point は RDCompiler#bracket_link の 'm' 分岐1箇所(MDCompiler の インライン参照も restore_inline 経由でここに合流する)。デフォルト ラベルを新設の display_spec で畳む: spec が ".#" を含む場合のみ、DB の version が 4.0 以上なら NameUtils.display_typemark で "?." に置換 (rurema#250/rurema#277 と同じ選択規則)。spec・URL・アンカーキーは不変、明示 ラベルには触れない。reference_link の「spec/見出し」ラベルの spec 側 (現 doctree に用例の無い理論エッジ)も同じ規則で畳む。 テスト: rd の版別ラベル(3.4/4.0/4.1)・他 typemark とスペシャル変数の 不変・ref:m: の見出し連結、md の [m:Kernel?.x]/[m:Kernel.#x] 両表記 (3.4/4.0)。全テスト 17805 件・steep・JS テスト green。ミニ markdowntree の実描画で 3.4=".#"・4.0="?." と URL 不変を確認。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jul 23, 2026
znz
added a commit
that referenced
this pull request
Jul 24, 2026
Entry#description_text(meta description など、コンパイラを通さない表示 テキスト)は、[[m:Kernel.#mf]] のような参照からラベルを取り出す際に ".#" をそのまま出力していた。可視ページの参照は bitclust#282/#283 で DB バージョン 4.0 以降は "?." 表示に切り替わるが、この経路だけ ".#" の まま残っていた。 RDCompiler#display_spec と同じく NameUtils.display_typemark を使って、 バージョン 4.0 以降は ".#" を "?." に畳んで表示する。spec・URL・ アンカーキーなどの識別子は不変。 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.
概要
fix #282
[[m:...]]のデフォルトラベル(参照の記載文字列)が module function で常に.#のまま表示され、#277 で?.化した見出しと 4.0 以降のページ内で表記が混在していました。Markdown ソースに[m:Kernel?.x]と書いてもmarkdown_to_rrdが MethodSpec 互換のため.#へ正規化するので、記載表記に依らず発生します。変更内容
RDCompiler#bracket_linkのm分岐1箇所(MDCompiler のインライン参照もrestore_inline経由でここに合流)。デフォルトラベルを新設のdisplay_specで畳みます: spec が.#を含む場合のみ、DB の version が 4.0 以上ならNameUtils.display_typemarkで?.に置換(bitclust から生成される見た目も .# から ?. に移行したい #250/4.0 以降のドキュメントでモジュール関数の表示を ?. にする #277 と同じ選択規則・同じ choke point 系)label引数)には触れませんreference_linkの「spec/見出し」連結ラベルの spec 側(現 doctree に用例の無い理論エッジ)も同じ規則で畳みますテスト・検証
.#/ 4.0・4.1=?.)・他 typemark(./#/$)の不変・ref:m:の見出し連結[m:Kernel?.x]/[m:Kernel.#x]両表記とも版の見出し表記に一致(3.4/4.0)[m:Kernel?.binding]参照が 3.4 DB ではKernel.#binding、4.0 DB ではKernel?.binding、href は両版とも不変🤖 Generated with Claude Code