Bug #2152
Do not replace characters in wiki links
100%
Description
Links containing '–' '—' or apostrophes are false after characters replacment.
Links (href attribute) should not be changed by characters replacment.
Related issues
Associated revisions
History
#1 Updated by Andriy Lesyuk over 11 years ago
- Status changed from New to Open
- Assignee set to Andriy Lesyuk
#2 Updated by Andriy Lesyuk over 11 years ago
- Target version set to 0.0.4
#3 Updated by Andriy Lesyuk over 11 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
%27
instead of'
in URLs (any way apostrophes in URLs are problematic).
What do you think?
#4 Updated by Andriy Lesyuk over 11 years ago
- % Done changed from 20 to 70
#5 Updated by Andriy Lesyuk about 11 years ago
- Status changed from In Progress to Incomplete
- Target version deleted (
0.0.4)
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 should 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.
#6 Updated by Andriy Lesyuk about 11 years ago
Got also another idea, which may be implemented in 1.0.0b or in some intermediate version.
#7 Updated by Andriy Lesyuk about 11 years ago
- External issue set to #210
#8 Updated by Andriy Lesyuk about 11 years ago
- External issue changed from #210 to #210, #645
#9 Updated by Andriy Lesyuk about 11 years ago
- Target version set to 1.0.0b
#10 Updated by Andriy Lesyuk about 11 years ago
- Due date set to 15 Oct 2013
- Status changed from Incomplete to In Progress
- % Done changed from 70 to 90
#11 Updated by Andriy Lesyuk about 11 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
r61 should make it not be replaced in links. If it fails, please reopen the issue.