Inline formatting within links are rendered in link text
Bug #1060784 reported by
r
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nyctergatis Markup Engine |
Fix Released
|
Low
|
Yves Piguet |
Bug Description
Consider this Creole:
[[**abc]]
[[__abc]]
[[//abc]]
which renders this HTML:
<p><a href="*
<p><a href="_
<p><a href="/
As you see, the inline formatting "**", "__" and "//" are rendered in the link context instead of being output as such.
If I instead use
[[~*~*abc]]
it gets the link text right, but not the link target:
<p><a href="~
I am not sure which option is right in terms of the Creole standard, but the current implementation is clearly wrong.
Changed in nme: | |
status: | Confirmed → Fix Committed |
Changed in nme: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The four cases are consistent (in a hyperlink where the target isn't specified explicitly, the literal content of the brackets is used as the target and the text is parsed), but the result doesn't make much sense. I don't like the empty <b></b> etc. after the link, either. At least the result is valid HTML.
Since syntax errors don't exist in Creole, I think the best solution is to discard markup in the link target.