Markdown リンクとリスト内のインデントフェンスを描画対応#241
Merged
Merged
Conversation
doctree の手書き Markdown(rurema/doctree#3086 の news/1_9_0.md)で 使われた3つの記法を MDCompiler(GFM モード)で描画できるようにする: - [テキスト](URL) / [テキスト](#アンカー) のインラインリンク (MARKUP_SPEC §7.4/§7.5。宛先を URL と #フラグメントに限定し、 参照直後の括弧書きテキストをリンクと誤認しない。表示テキストの 角括弧はネスト・\ エスケープ対応) - <https://...> の自動リンク - リスト項目・定義リスト説明内のインデントされたコードフェンス (GFM と同じくフェンス行のインデント幅を内容から除去。 ハイライト・title= ラベルも通常のフェンスと同様に処理) あわせて、リストと空行で切り離された残余のインデント行で read_paragraph が空になりディスパッチが無限ループする潜在バグを修正 (段落として消費する)。manual/ 全ファイルの新旧出力比較で、この修正で タイムアウトしていた16ファイルが完走するようになる以外は完全一致。 Co-Authored-By: Claude Fable 5 <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.
rurema/doctree#3086(news/1_9_0.md の Markdown 記法修正)で使われた記法が
MDCompiler(GFM モード)で未対応だったため、描画できるようにします。
対応した記法
[テキスト](URL)/[テキスト](#アンカー)(MARKUP_SPEC §7.4/§7.5)https?://と#フラグメントに限定し、[c:String](を参照)のような参照直後の括弧書きをリンクと誤認しない
[[ruby-cvs:16833]](URL))・\[エスケープ対応[[url:]]と同じclass="external"<https://...>title=ラベルは通常のフェンスと同じ処理あわせて修正
read_paragraphが空になり、ディスパッチが無限ループする潜在バグを修正(段落として消費)。
manual/ 全 1250 ファイルの新旧出力比較で、従来この無限ループで
タイムアウトしていた16ファイルが完走するようになる以外は完全一致(回帰なし)
検証
rake sig/steep checkエラーなしリンク・フェンスの描画と取りこぼしゼロを確認
🤖 Generated with Claude Code