Unfortunately I still have the issue. I tried changing the order of the regexes in the theme settings, yet the “shorter” entry is still triggered first.
Hello @jrgong! Were you able to do bulk uploads using a CSV file? Trying to figure it out but I’m not quite sure where to click. I am not a developer btw 
So do we. I note that:
discourse,https://discourse.org
discourse meta,https://meta.discourse.org
meta discourse,https://meta.discourse.org
Gives us:
discourse
discourse meta
meta discourse
The order that these are in the Theme Settings (and presumably the database beneath) doesn’t seem to make a difference. Rather, if you extend an existing linkified word, it will pick up the difference. If you add a word in front, it doesn’t.
Hmm, that’s a bit strange. You’re right, the order in the settings shouldn’t matter, because we sort the words by length:
Not sure how much time should be invested in this since AFAIK this feature is being ported to Discourse core.
Hi,
Just noticed that the linkified words don’t have that click counter as other links have (which would be a nice feature to have, in my opinion). Is it on purpose or just a bug?
can this be restricted to specific categories/tags so that a post would have to be in the category or tagged to generate links?
Is it possible to specify a title for the link? So “ghost” becomes “ghost (see warning!)”?
Possibly using markdown link syntax:
ghost,[ghost (see warning!)](https://warning.example.com)
Or specifying the title as a third parameter:
ghost,https://warning.example.com,ghost (see warning!)
@Paracelsus the click counter is not supported in this theme, sorry.
Not really a bug, the theme is only a JavaScript code running in your browser. It doesn’t talk to the server so there’s no way to store the number of clicks.
Now in discourse under replace words:
/admin/customize/watched_words/action/replace
If I just enter the word and then just put the URL without any markdown, it works! So that is how to get it to work without the autolink theme component.
(Whereas in the theme component you put the word/phrase then a comma then the link to use, in watched word replace you enter the word in one field and JUST the link in another… do not try to enter markdown in the replacement string like I originally tried.)
こんにちは、このコンポーネントは素晴らしいですね!作成していただきありがとうございます。
しかし、少し問題があります。リンク化には特定の単語の後にスペースが必要なようで、そのためこのコンポーネントは中国語や日本語(韓国語もそうかもしれませんが、私はその言語を知りません)のDiscourseインスタンスではうまく機能しません。
私は中国語のネイティブスピーカーであり、日本語も話します。中国語では、Apple、Office、BB(Blackboard)、DNAなど、文字の中で使われる固定の借用語があり、その翻訳は日常言語ではほとんど使われません。また、非公式な文章では、このような単語が中国語に囲まれている場合、その前後にスペースを追加することは通常ありません。
これは一例です。
你会用Office吗?
Officeスイートの使い方をご存知ですか?
日本語でも同様です。
革新に満ちたAppleの世界へようこそ。(Apple Japan公式サイトより引用)
革新に満ちたAppleの世界へようこそ。
このコンポーネントをこれらの2つの言語に適応させるのは大変な作業になる可能性があることは承知しています。なぜなら、アルファベットを使用する言語で意図しないリンク化につながる可能性があるからです。ですので、小さな不完全な点が存在することを指摘するだけです。この素晴らしいコンポーネントのアイデアに改めて感謝します。![]()
これは素晴らしいですね。遡って実行することは可能ですか、それともすべてのリンクを手動で検索して変更する必要がありますか?
それらの投稿を再ベイクできるはずです。レンチをクリックしてHTMLを再構築できます。それが機能することを確認したら、一致する投稿の再ベイク方法のrakeタスクを検索できます。
実際には、このテーマはブラウザで読み込まれたときに投稿を動的にリンクするため、何もする必要はありません。 ![]()
ああ。とてもクールですね。気づきませんでしたが、理にかなっています。
当社のFOSS系譜ソフトウェアの用語集は、投稿やリンク化には大きすぎました。
用語集の各用語をリンク化した場合、すべての投稿が青いリンクの海に沈んでしまうでしょう。ユーザーはリンクをクリックしなくなる可能性が高いです。また、用語集の監査証跡も必要でした。
そのため、「Gramps Glossary」を、MediaWiki搭載のWikiの記事にリンク化しました。そして今では、「(参照 [glossary term] はGramps Glossaryにあります)」のような注釈を使用しています。
(ソフトウェア固有ではなく、系譜という主題に一般的な用語については、2番目のGenealogy Glossaryがあります。)
パイプが許可されるように何か変更がありましたか?
現在、次のような回避策を使用しています。

また、除外されたクラスの非常に深い子孫の中にいるときに、特定のワールドをリンク化から除外する方法はありますか?
ドキュメントカテゴリを持つフォーラムを構築していますが、リンク化された単語は冗長になるため、ドキュメントカテゴリ内ではリンク化を避けたいです。他のカテゴリの単語はリンク化され、このドキュメントカテゴリのトピックにリンクされます。
さらに、リンク化された単語は新しいウィンドウで開きます。
そのため、これは機能しませんでした。

ここで直面している問題の例を示します。これは、ドキュメントトピック内のテキストの一部です。
「22° halo」をクリックすると、同じページ、同じ場所へのリンクが表示されるページが開きます。
タイトルの単語を除外することはできますが、特に目次が含まれているため、その後の段落には特定のクラスがありません。それらは通常の段落です。
おそらく、「除外されたクラス」設定はCSSセレクターを受け入れることができますか?
たとえば、d-toc-cooked > *
編集:また、単語が除外されたクラスの直接の子であるのに、これが機能しない理由がわかりません。
![]()
「22° Halo」はまだリンク化されています。
<h3 id="toc-h3-22-halo" data-d-toc="toc-h3-22-halo" class="d-toc-post-heading">
<a name="h-22-halo-7" class="anchor" href="#h-22-halo-7"></a>
<a href="https://discourse.canapin.com/t/ice-halos-information-and-list/28#h-22-halo-7" rel="nofollow" target="_blank" class="linkify-word no-track-link">22° Halo</a>
</h3>
これは、目次のHTMLコードが「リンク化」の後に生成されるためでしょうか?
ええ、おそらくそれが問題です。これらはどちらもJavaScriptコンポーネントなので、競合状態が発生し、どちらが先に実行されるかによって結果が決まります。
HTML許可リストにクラスを追加したので、この問題を回避しました。
しかし、ボタンで属性を除外できれば、Discourseでデフォルトで許可されている data-(anything) HTML属性を使用して、リンク化する単語を防ぐための柔軟性が高まります。
例:
<span> text </span> → <span> text </span>
このテーマコンポーネントにこれを追加できた場合、プッシュリクエストは受け入れられますか?
これは残念ながら、これらのいずれか(特に.。これはID.1やid2.5のような略語のリンク付けに便利です)を明示的に含む単語のリンク付けを妨げます。
これはコアで修正するのが最善かもしれませんが、当面は上記のすべての問題を修正するPRはこちらです。
https://github.com/discourse/discourse-linkify-words/pull/21
サンプル正規表現ルール(id1.1からid10.100まで(id m.n、IDm.n、ID m.nのバリエーションを含む)に一致します)
/(ID¦id)\\s?(([1-9]¦10)\\.([1-9]¦[1-9][0-9]¦100))/, https://example.com/id$2


