Handle links containing parentheses
result: <p><a href="http://www.domain.com/123-alpha_3_(wiki">textile</a>)</p>
Please note there is a parenthesis after 'wiki' in the input but it gets removed from the URL in the result.
Comments and changes to this ticket
- Milestone set to 4.1.9
- State changed from new to open
- Title changed from Rendering error for link with parenthesis to Handle containing parentheses
Glad you figured it out, Greg. Your case adds weight to Ryan Alyea's assertion:
Is there a better way to support parenthesis in links like Wikipedia links? Requiring brackets around the link is confusing to many new users who don't understand why their Wikipedia links won't work. I wrote a patch on the latest version of RedCloth to support this a lot better. Instead of stopping on a end parenthesis, it instead looks at the URL itself. If the number of opening and closing parenthesis are equal, it allows the end parenthesis in the link. I'm sure there's a better way, like checking if they are properly nested.
Best of all, he included a patch! Hopefully it'll work out and you won't have to use brackets.