Adding schemes to markdown linkify


(Ryan Mulligan) #1

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:

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


(cpradio) #2

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


(Ryan Mulligan) #3

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.


(Sam Saffron) #4

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