Skip to content

Commit

Permalink
fix(images): fix error when using image references
Browse files Browse the repository at this point in the history
In some circumstances, on a reference style image, the last capturing
group is ignored, which causes the fucntion argument to return the number
of matches instead of a string (or undefined).
Checking if the title parameter is a string ensures that the title
parameter is actually something that was caught by the regex and not some
metadata.

Closes #585
  • Loading branch information
tivie committed Sep 14, 2018
1 parent fc7ac1e commit 63763b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
@@ -0,0 +1,3 @@
[![the-image]]

[the-image]: http://example.com/foo.png
Empty file.

0 comments on commit 63763b1

Please sign in to comment.