Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(images): fix error when using image references
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