๐ŸŽ‰ Happy 19th Birthday to Danbooru! ๐ŸŽ‰
Danbooru

A DText URL formatting change proposal

Posted under Bugs & Features

help:dtext said:

"link title":https://github.com/r888888888/danbooru/
Links to an exact URL: link title.

link title/artist_versions?search[artist_id]=62361
Links URL relative to Danbooru's servers: link title.

The DText URL formatting in its current form is rather inconvenient, as it tends to interpret symbols that come right after a hyperlink (e.g., parentheses and question marks) as the continuation of the latter. Hence I propose to change it (assuming that's possible) to the more usual

[url="URL"]TEXT[/url]

Or, at least, something like

"TEXT":"URL"

The only problem I've really run into with it is that it doesn't accept putting an ellipsis after the URL, so I have to make it part of the link or put a space before it, which I think is ugly.

For the next version I added support for the following format in addition to the existing ones:

"test":[http://test.com]

So if the url ends in parentheses or some other punctuation just make sure you surround the link in [] brackets.

Toks said:

For the next version I added support for the following format in addition to the existing ones:

"test":[http://test.com]

So if the url ends in parentheses or some other punctuation just make sure you surround the link in [] brackets.

Cool, thanks.

Toks said:

For the next version I added support for the following format in addition to the existing ones:

"test":[http://test.com]

So if the url ends in parentheses or some other punctuation just make sure you surround the link in [] brackets.

Nice. Just have to remember to update help:dtext once the next version goes live.

1