From 495ebece3a0999d8b4721bce25a5972259663229 Mon Sep 17 00:00:00 2001 From: Lee Hanken Date: Fri, 12 Jul 2024 13:09:46 +0100 Subject: [PATCH] Allow variation in format of Medium author domain --- url_to_markdown_common_filters.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/url_to_markdown_common_filters.js b/url_to_markdown_common_filters.js index 8422088..9aa23e2 100755 --- a/url_to_markdown_common_filters.js +++ b/url_to_markdown_common_filters.js @@ -46,10 +46,10 @@ module.exports = { ], replace: [ { - find: /\s*\[\s*!\[([^\]]+)\]\(([^\)]+)\)\s*\]\((https:\/\/medium.com\/@[^\?\)]*)\?[^\)]*\)\s*/g, - replacement: '![$1]($2)\n[$1]($3)\n\n' + find: /\s*\[\s*!\[([^\]]+)\]\(([^\)]+)\)\s*\]\(([^\?\)]*)\?[^\)]*\)\s*/g, + replacement: '![$1]($2)\n<$3>\n\n' } - ] + ] }, { domain: /(?:.*\.)?stackoverflow\.com/,