From 3e7c7f5a8350b35ceb12d365f7594029b7511396 Mon Sep 17 00:00:00 2001 From: Lee Hanken Date: Sat, 5 Nov 2022 02:01:47 +0000 Subject: [PATCH] added filter for stackoverflow to hide editor --- url_to_markdown_common_filters.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/url_to_markdown_common_filters.js b/url_to_markdown_common_filters.js index e6c96f4..308c7f6 100755 --- a/url_to_markdown_common_filters.js +++ b/url_to_markdown_common_filters.js @@ -41,17 +41,14 @@ module.exports = { replace: [ { find: '(https://miro.medium.com/max/60/', - replacement: '(https://miro.medium.com/max/600/' + lsquo replacement: '(https://miro.medium.com/max/600/' } ] }, { - domain: /(?:.*\.)?stackoverflow\.com/, - replace: [ - { - find: /\* Links.*Three \|/ig, - replacement: '' - } + domain: /stackoverflow\.com/, + remove: [ + /\*\s+Links.*Three\s+\|/g ] } ],