Skip to content

fix: トリプルブラケットリンクの*prefixがpipe付きで機能しない問題を修正#30

Merged
r74tech merged 1 commit intodevelopfrom
fix/triple-link-star-prefix
Feb 21, 2026
Merged

fix: トリプルブラケットリンクの*prefixがpipe付きで機能しない問題を修正#30
r74tech merged 1 commit intodevelopfrom
fix/triple-link-star-prefix

Conversation

@r74tech
Copy link
Copy Markdown
Owner

@r74tech r74tech commented Feb 21, 2026

Summary

  • [[[*http://url|label]]]* prefix
    が除去されず、URLがページリンクとして誤認識される問題を修正
  • * prefix の除去を pipe の有無に関わらず実行するよう変更
  • 外部URL(http/https)の場合のみ target: "new-tab" を設定

変更内容

  • packages/parser/src/parser/rules/inline/link-triple.ts: * prefix の処理ロジック修正
  • tests/fixtures/link/triple/: star prefix のテストケース追加

Wikidot実機確認結果

入力 Wikidot出力
[[[*http://url|label]]] <a target="_blank" href="http://url">label</a>
[[[*test|*test]]] <a href="/test">*test</a>

[[[*http://url|label]]]で*が除去されず、URLが正しく認識されない
バグを修正。*prefixの除去をpipeの有無に関わらず実行するよう変更。
外部URL(http/https)の場合のみtarget="_blank"を設定。
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wdpr-demo-v1-files 863f02b Commit Preview URL

Branch Preview URL
Feb 21 2026, 04:40 PM

@r74tech r74tech merged commit 0272110 into develop Feb 21, 2026
8 checks passed
@r74tech r74tech deleted the fix/triple-link-star-prefix branch February 21, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant