From ea60d5a2056aa5d16c9184a85d2d50d27a9f77e9 Mon Sep 17 00:00:00 2001 From: Christian Hillebrand Date: Wed, 20 Oct 2021 12:35:01 +0200 Subject: [PATCH] Re-enables custom schemes auto linking --- packages/markdown/src/template-integration.js | 42 ++++++++++++++++++- releases/delete-phantomjs.sh | 3 -- 2 files changed, 41 insertions(+), 4 deletions(-) delete mode 100755 releases/delete-phantomjs.sh diff --git a/packages/markdown/src/template-integration.js b/packages/markdown/src/template-integration.js index 1e12ae794..a5e8ac720 100755 --- a/packages/markdown/src/template-integration.js +++ b/packages/markdown/src/template-integration.js @@ -9,7 +9,7 @@ var Markdown = require('markdown-it')({ import markdownItMermaid from "@liradb2000/markdown-it-mermaid"; -/* + // Static URL Scheme Listing var urlschemes = [ "aodroplink", @@ -22,6 +22,10 @@ var urlschemes = [ "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 @@ -33,6 +37,42 @@ for(var i=0; i