vBulletin v4 importer list conversion breaks markup

AI-generated summary

In a bug report titled “vBulletin v4 importer list conversion breaks markup,” outofcontrol reports that when importing vBulletin v4 content into Discourse, list markup using [LIST] and [*] converts to [ul] and [li] BBCode, which renders incorrectly — links appear but list formatting is lost. codinghorror initially suggests the issue may be missing line breaks, but outofcontrol clarifies that the rendered output lacks proper list structure entirely. sam confirms that while ul BBCode is minimally supported via the BBCode plugin, it’s considered outdated and poorly implemented, recommending the importer be updated to convert vBulletin lists directly into proper Markdown instead. outofcontrol seeks confirmation, asking if installing the BB Code plugin would fix the rendering — but the consensus implies the real fix lies in improving the importer to avoid BBCode entirely and output clean Markdown lists.

When importing from vBulletin v4 to Discourse, the following markup gets converted incorrectly, resulting in a rather unsightly post in Discourse:

vBulletin post source code (which renders correctly for us in VB

[LIST]
[*][URL="https://link.one"]TITLE OF LINK ONE[/URL] (more info here)
[*][URL="https://link.two"]TITLE OF LINK TWO[/URL] (more info here)
[*][URL="https://link.three"]TITLE OF LINK THREE[/URL] (more info here)
[/LIST]

Becomes this in Discourse:

[ul]
[li][TITLE OF LINK ONE](https://link.one) (more info here) [/li][li][TITLE OF LINK TWO](https://link.two) (more info here)[/li][li][TITLE OF LINK THREE](https://link.three) (more info here) [/li][/ul]
3 Likes

That looks correct to me, the problem you mean is lack of linebreaks?

Sorry, I didn’t post the rendered portion of the code in Discourse. Once rendered to the end user it looks like this:

[ul]
[li]TITLE OF LINK ONE (more info here) [/li]
[li]TITLE OF LINK TWO (more info here)[/li]
[li]TITLE OF LINK THREE (more info here)[/li]
[/ul]

The links are rendered but the list is not rendered.

1 Like

Yeah ul bbcode is kind of supported in the bbcode plugin, but its a terrible syntax that should be nuked as soon as possible.

I recommend amending that importer to properly change this quirky bbcode to proper markdown

2 Likes

To make sure I understand correctly, this conversion is expected, but to see it rendered properly I need to add this BB Code plugin?

2 Likes