diff --git a/packages/markdown/src/template-integration.js b/packages/markdown/src/template-integration.js index 464d0d765..30074d777 100755 --- a/packages/markdown/src/template-integration.js +++ b/packages/markdown/src/template-integration.js @@ -6,23 +6,40 @@ var Markdown = require('markdown-it')({ breaks: true, }); + +// Static URL Scheme Listing +var urlschemes = [ + "aodroplink", + "thunderlink", + "cbthunderlink", + "onenote", + "file", + "abasurl", + "conisio", + "mailspring" +]; + +// Better would be a field in the admin backend to set this dynamically +// instead of putting all known or wanted url schemes here hard into code +// but i was not able to access those settings +// var urlschemes = currentSetting.automaticLinkedUrlSchemes.split('\n'); + +// put all url schemes into the linkify configuration to automatically make it clickable +for(var i=0; i