Repository navigation
mfm.js 0.28.0 との互換性修正(リンクラベルの改行・空入力・__proto__・trim) - #38
Merged
LibraryLibrarian merged 6 commits intoNov 24, 2026
Merged
Conversation
Merged
mfm.js の manyThen と同様、ラベル要素の境界で改行を検出して拒否する。 Co-Authored-By: Codex Sol <noreply@openai.com>
Co-Authored-By: Codex Sol <noreply@openai.com>
Co-Authored-By: Codex Sol <noreply@openai.com>
Co-Authored-By: Codex Sol <noreply@openai.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
LibraryLibrarian
force-pushed
the
feature/mfm-js-compat-link-empty-input
branch
from
November 22, 2026 03:02
69067a5 to
6c7a928
Compare
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.
概要
mfm.js 0.28.0 と Dart の AST を約 23 万回比較して見つかった差のうち、利用者に見える互換性の差 4 件を解消。
変更
[a\n](http://a)は text + url + text。太字・fn などラベル内の構文の内側の改行は、その構文の規則に従う。Failureではなく空の AST として返す(build()/buildSimple())。__proto__をargsに保持しない。mfm.js は通常の{}へ代入するため継承 setter に吸収される。constructorなど他の継承名は従来どおり保持。String.prototype.trimと同じ空白集合に変更。U+0085 を保持。BMP 全域(U+0000..U+FFFF)で Node の trim と一致を確認。確認
dart test(1,115 件)・dart analyze成功。対応していない項目
search構文が絡む既存の差 17 件。