Fix escaping of parentheses in links and images #79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/escape-url"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If the URL contains a
)character the link is currently not correctly serialized.Could you resubmit this without the spurious whitespace changes in the test file? (Turn off whole-file auto-reindentation in your editor.)
@marijnh Fixed that.
I think it happened because everywhere else the lines are indented by 2 spaces, except those three lines where 3 spaces are used.
Markdown handles balanced parentheses in URLs automatically. I.e.
[foo](bar(baz))is a valid link. Escaping one of the parens will break that ([foo](bar(baz\))is not a valid link). So this should probably escape opening parens as well.You are right! Fixed that, too.
Thanks!