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/,