Do not replace characters in wiki links
Links containing '–' '—' or apostrophes are false after characters replacment.
Links (href attribute) should not be changed by characters replacment.
#3 Updated by Andriy Lesyuk over 9 years ago
- Status changed from Open to In Progress
- % Done changed from 0 to 20
The problem is, that at the moment of replacement it is not known, if it’s
href or not... In any way parsing the syntax before replacement is, perhaps, too much. Not sure how to fix this issue... At the moment the only way seems to be:
- Require spaces before and after – and — (this way making sure, it’s not a link).
- Require users to use
'in URLs (any way apostrophes in URLs are problematic).
What do you think?
#5 Updated by Andriy Lesyuk about 9 years ago
- Status changed from In Progress to Incomplete
- Target version deleted (
Ok, I believe the issue with dashes is not longer actual (it’s fixed)! Regarding apostrophes, I believe, I can’t do anything...
An apostrophe is a “reserved” character accordingly to RFC-3986. This means, that it can have a special meaning and not encoded in this case, or it be encoded otherwise! Does apostrophe have a special meaning in your case?
Also it would be great to have samples of Wiki text with such links...
See also #2224.