Fixed parsing of brackets within inline image titles

Fix incorrect parsing of inline image title when it contains a close bracket.

`![alt](img.jpg "example (wrong)"]` translates into `<img ... title="&quot;example (wrong" />")`

The regex matches the close bracket within the quotes, breaking the tag into `"example (wrong` and `")`

This fix adds a match for quoted titles, as well as test cases.