furbooru / philomena

Next-generation imageboard (furry edition)
https://furbooru.org/
GNU Affero General Public License v3.0
14 stars 3 forks source link

Inserting a blockquote on a text that ends with a link breaks the quote and the link #36

Closed HushedFox closed 4 years ago

HushedFox commented 4 years ago

Describe the bug When the text that should go into a quote ends with a link and a quote is inserted the quote doesn't work unless a space is manually added between the link and the [/bq] or that part is moved to a new line.

To Reproduce Steps to reproduce the behavior:

  1. Go to any page that let's you edit and preview text, for example https://furbooru.org/images/new
  2. Write a text with a link in it, for example this: "This is a link to Site Rules":https://furbooru.org/pages/rules image
  3. Select all and click on "insert blockquote": image the end result is: image
  4. Preview the description/comment/forum post and see that the qoute is broken and the link is wrong (because the link now leads to an url that has [/bq] added at the end): image

Expected behavior The quote and the link should work. A solution would be adding a space: image

or moving [/bq] to a new line: image

It should be done automatically when clicking on "insert blockquote".

SeinopSys commented 4 years ago

I believe this is a known issue, the usual workaround I've used is to wrap the link in []:

[bq]["This is a link to Site Rules":https://furbooru.org/pages/rules][/bq]

Hopefully this will be resolved by the eventual move to markdown

HushedFox commented 4 years ago

It's easier to just add one space or move [/bq] to a new line by hiting enter once than to add two different symbols in tow different parts of the link ([ and ]) :P

SomewhatDamaged commented 4 years ago

I believe this is a known issue, the usual workaround I've used is to wrap the link in []:

[bq]["This is a link to Site Rules":https://furbooru.org/pages/rules][/bq]

Hopefully this will be resolved by the eventual move to markdown

Perhaps it would be better to make the Link button automatically wrap URLs in [ ]?