# Adding schemes to markdown linkify

**URL:** https://meta.discourse.org/t/adding-schemes-to-markdown-linkify/94434
**Category:** Development
**Created:** [August 10, 2018, 5:43pm UTC](https://meta.discourse.org/t/adding-schemes-to-markdown-linkify/94434 "2018-08-10T17:43:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ryantm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryantm/32/134063_2.png) [@ryantm](https://meta.discourse.org/u/ryantm)
#### Post date: [August 10, 2018, 5:43pm UTC](https://meta.discourse.org/t/adding-schemes-to-markdown-linkify/94434/1 "2018-08-10T17:43:31Z")

</div>

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](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

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [August 10, 2018, 8:01pm UTC](https://meta.discourse.org/t/adding-schemes-to-markdown-linkify/94434/2 "2018-08-10T20:01:48Z")

</div>

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

> [@Discourse Mark Plugin](https://meta.discourse.org/t/discourse-mark-plugin/93059):
>
> discourse-mark Repository: [GitHub - sirideain/discourse-mark: Adds highlighting to Discourse](https://github.com/sirideain/discourse-mark)Features Adds an editor option to highlight text. Usage You can wrap text with == to highlight it. ==Highlighted Text== Installation Known Issues None Future Update icon to highlighter once Font Awesome 5 is available

---

<div class="post-metadata">

### Author: ![ryantm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryantm/32/134063_2.png) [@ryantm](https://meta.discourse.org/u/ryantm)
#### Post date: [August 10, 2018, 8:04pm UTC](https://meta.discourse.org/t/adding-schemes-to-markdown-linkify/94434/3 "2018-08-10T20:04:52Z")

</div>

I’m thinking that since there is already a [option for adding TLDs](https://github.com/discourse/discourse/blob/f13a7226dbdd0f7716e780c2164f6ca2e8f47524/app/assets/javascripts/pretty-text/engines/discourse-markdown-it.js.es6#L250) the Discourse team might be amenable to a PR that adds schemes.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [August 10, 2018, 11:24pm UTC](https://meta.discourse.org/t/adding-schemes-to-markdown-linkify/94434/4 "2018-08-10T23:24:49Z")

</div>

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