From 56ac5defc859bfd5ac6d278ca40c34429bcc8fcc Mon Sep 17 00:00:00 2001 From: Lee Hanken Date: Fri, 12 Jul 2024 13:20:22 +0100 Subject: [PATCH] Further adjustment to Medium avatars --- url_to_markdown_common_filters.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/url_to_markdown_common_filters.js b/url_to_markdown_common_filters.js index 9aa23e2..7cfa6b9 100755 --- a/url_to_markdown_common_filters.js +++ b/url_to_markdown_common_filters.js @@ -42,14 +42,12 @@ module.exports = { { find: '(https://miro.medium.com/max/60/', replacement: '(https://miro.medium.com/max/600/' - } - ], - replace: [ + }, { find: /\s*\[\s*!\[([^\]]+)\]\(([^\)]+)\)\s*\]\(([^\?\)]*)\?[^\)]*\)\s*/g, - replacement: '![$1]($2)\n<$3>\n\n' + replacement: '\n![$1]($2)\n[$1]($3)\n\n' } - ] + ] }, { domain: /(?:.*\.)?stackoverflow\.com/,