diff --git a/lib/mdless/console.rb b/lib/mdless/console.rb index c6e8934..0c40bea 100644 --- a/lib/mdless/console.rb +++ b/lib/mdless/console.rb @@ -832,7 +832,7 @@ def mmd_metadata_replace(input) end def fix_image_attributes(input) - input.gsub(/^( {0,3}\[.*?\]: *\S+) +([^"].*?)$/, '\1') + input.gsub(/^( {0,3}\[[^^].*?\]: *\S+) +([^"].*?)$/, '\1') end def preprocess(input) diff --git a/lib/mdless/version.rb b/lib/mdless/version.rb index 934b6b4..8608b13 100644 --- a/lib/mdless/version.rb +++ b/lib/mdless/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module CLIMarkdown - VERSION = '2.1.40' + VERSION = '2.1.41' end diff --git a/test/Byword.md b/test/Byword.md index 6192c1b..46cbcc9 100644 --- a/test/Byword.md +++ b/test/Byword.md @@ -111,9 +111,11 @@ In the vast majority of times, you will be using Markdown for its *raison d'ê [img-export]: img/export.png "Export options" -* Copy the HTML output directly to your clipboard -- so you can conveniently paste it into your favorite HTML editor[^fn-export]; +* Copy the HTML output directly to[^test] your clipboard -- so you can conveniently paste it into your favorite HTML editor[^fn-export]; * Export to a file. +[^test]: This is a little test. + [^fn-export]: When copying to clipboard, **Byword** will only place the equivalent of the `body` tag contents. On the other hand, when exporting to a file, a complete HTML file will be generated. We know how much you love **Byword**'s aesthetics so we even added a little bonus to the option of exporting to a file.