RpNation / bbcode

RpNation's Official BBCode Implementation for Discourse
GNU General Public License v3.0
1 stars 3 forks source link

BBCode Tag Workarounds #106

Closed Alteras1 closed 2 weeks ago

Alteras1 commented 2 months ago

Due to how the built in markdown engine processes inline and block level bbcodes, some specific tag orders aren't supported.

For example: image

likely workaround would be to just add those simple default tags (italic, bold, underline, etc.) manually ourselves to the BBob plugin.

Alteras1 commented 2 months ago

I think this would only apply to the ones marked as inline bbcode in the markdown engine? We'd probably need to read through the source code to grab them

kyuukestu commented 2 months ago

Hi! I whipped up a few tests for italics, bold, underline, & strike-through and I found that discourse automatically converts these tags to their native versions when the post is baked.

Here's the code in the preview:

image

And here's what it turns into after being baked:

image