Topic: [Bug] DText parsing eats up link when using DText in link text

Posted under Site Bug Reports & Feature Requests

Bug overview description.
DText parsing eats up link text in sometimes unpredictable ways when DText is used as link text.

Note that using ` almost "solves" this problem i.e.:

"`[b]not bold[/b]`":http://example.com/

-> `not bold`

What part(s) of the site page(s) are affected?
DText

What is the expected behavior?

There are more cases but to summarize the " delimiting link text should pretty much work as `.

What actual behavior is given instead?

  • "thumb #14":http://example.com/ -> thumb #14 = post #14
  • "post #14":http://example.com/ -> post #14 = post #14
  • "[[no effect]]":http://example.com/ -> "">no effect":https://e621.net/wiki/show/no_effect%3Ca%20href= = ">no effect
  • "{{no effect}}":http://example.com/ -> "">no effect":https://e621.net/post/search?tags=no+effect%3Ca%20href= = ">no effect
  • "[b]bold[/b]":http://example.com/ -> ">bold = ">bold
  • "[color=red]not red[/color]":http://example.com/ -> "not red":http://example.com/ (in red) = [color=red]not red[/color]

(it could possibly be argued (both for and against) that link colors should be allowed, since the following doesn't work: [color=red]"red":http://example.com/[/color])

Time of incident (if applicable).
N/A

Can you reproduce the bug every time?
Yes

What steps did you take to replicate this bug?
See above.

Errors or other messages returned (if any).
N/A

  • 1