maruku icon indicating copy to clipboard operation
maruku copied to clipboard

Brackets in URL links are not handled correctly

Open gpoul opened this issue 10 years ago • 1 comments

When there is a closing bracket in a link maruku uses this as the end of the link and not as part of the link.

A markdown sample:

[some link with brackets](http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Timestamp.html#toString())

This results in the following parser tree with maruku 0.7.1:

md_el(:document, md_par([
    md_im_link("some link with brackets", "http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Timestamp.html#toString(", nil),
    ")"
]))

gpoul avatar Apr 22 '14 14:04 gpoul

Thanks for the report - I'll add some pending tests, but the fix is tricky.

bhollis avatar May 10 '14 23:05 bhollis