Adding schemes to markdown linkify

Hi!

I would like to add an additional scheme/protocol to the auto Markdown linkifier, because my company uses a custom schema for internal processes.

It looks like the feature enabled by default called “enable markdown linkify” uses this project:
https://github.com/markdown-it/linkify-it

which talks about adding additional schemes in its readme.

Has someone found a nice way to do this with Discourse? Can anyone offer advice on the best way to inject configuration into the linkify-it javascript library?

Sincerely,
Ryan

This is a really good plugin that implements a different plugin for markdown into Discourse, you can use it as an example on how to integrate linkify

2 Likes

I’m thinking that since there is already a option for adding TLDs the Discourse team might be amenable to a PR that adds schemes.

I think start with a plugin here, not sure I want to carry an extra setting quite yet

4 Likes