feat(parser): Integrate linkify into parser - #6
Open
Fuyeors wants to merge 1 commit into
Open
Conversation
Fuyeors
force-pushed
the
feat/integrate-formatter
branch
from
August 22, 2026 12:41
42e1327 to
48f9943
Compare
Use the shared linkify package for plain-text URL detection while retaining the historical matcher as a compatibility fallback. Build linkify before parser consumers in CI and Docker.
Fuyeors
force-pushed
the
feat/integrate-formatter
branch
from
August 22, 2026 12:48
48f9943 to
c3c31f6
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.
介绍
将
@fuyeor/linkify集成到@fuyeor/markdown-parser的纯文本 URL 自动识别流程中。根据进一步确认:由于直接使用
linkify不会增加任何兼容性失败,反而意外修复了原 parser 的两处误判,因此完全移除了旧的正则与括号平衡逻辑以减小包体积。linkify实现,辅以轻量预检 (LINKIFY_CANDIDATE_REGEX) 优化性能。legacyLinkify回退路径,代码更精简。Linkifier配置类型,允许注入自定义 linkifier。fuyeor.xn--p1ai->fuyeor.рф)。验证
已使用相同的 parser 兼容性测试和仓库现有 speed/memory benchmark 对集成前后进行比较。
<foo.bar.baz>和2.two两处误判)。提交作者为
Manus AI <bot+manus@fuyeor.com>。