phpBB import bug `bbcode-to-md` gem - content wrapped link appears broken


(Dean Taylor) #1

@neil When using the bbcode-to-md gem the content wrapped in a link appear to be broken.

Originally posted here: phpBB 3 Importer (old)

Sample 1:
Input:

Example [url=http://www.example.com/]HERE[/url]

Expected Output:

Example [HERE](url=http://www.example.com/)

Actual Output:

Example http://www.example.com/

This also breaks images embedded from photobucket using their standard code:
Input:

[URL=http://s662.photobucket.com/user/jinzin2008/media/thWolverine_51_013.jpg.html][IMG]http://i662.photobucket.com/albums/uu345/jinzin2008/thWolverine_51_013.jpg[/IMG][/URL]

Expected Output:

[http://i662.photobucket.com/albums/uu345/jinzin2008/thWolverine_51_013.jpg](http://s662.photobucket.com/user/jinzin2008/media/thWolverine_51_013.jpg.html)

Actual Output

http://s662.photobucket.com/user/jinzin2008/media/thWolverine_51_013.jpg.htmlhttp://i662.photobucket.com/albums/uu345/jinzin2008/thWolverine_51_013.jpg

BBCode - broken image links / no image displayed
phpBB 3 Importer (old)
(Neil Lalonde) #2

I fixed this:

https://github.com/nlalonde/ruby-bbcode-to-md/commit/9f01047840e2ea22f7142345db2c7cc9b7c30ffd


(Sam Saffron) #3