BBCode - broken image links / no image displayed


(Dean Taylor) #1

It is common for bbcode to be used on my forum and the “Create Topic” input box does specify that BBCode can be used - yet the following BBCode fails to work as expected.

Images are not displayed.

#Steps to Reproduce

  1. Create New Topic

  2. Enter the following text in the input content text area:

    [url=http://www.example.com][img]//discourse-meta.s3-us-west-1.amazonaws.com/original/2X/1/1d39bfce648516eeeacf9c2aaf07e76be519fb54.png[/img][/url]

#Expected Output
Image to be displayed when clicked linking to http://www.example.com.

#Actual Output
No image displayed only the text [img]//discourse-meta.s3-us-west-1.amazonaws.com/original/2X/1/1d39bfce648516eeeacf9c2aaf07e76be519fb54.png[/img].

Screen Capture of Actual Output

#Sample Usage

#Possible Related Bug


(Jeff Atwood) #2

This should probably work @eviltrout, a linked image is a common thing.


(Robin Ward) #3

Fixed in master:

https://github.com/discourse/discourse/commit/914217f78a241da2a84084a7e7f598cc37586304


(Jeff Atwood) #4