mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
b0d475fc08
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
2 lines
66 B
HTML
2 lines
66 B
HTML
<p>[<img src="http://example.com/foo.png" alt="the-image" />]</p>
|