Looking at the vbulletin bbcode plugin as a reference, it doesn’t seem like it will be too difficult to just add in support for what we already do. We have all sorts of custom bbcode as seen in the guides, from simple things to a custom div bbcode that lets people essentially use HTML to an extent in a secure manner that generates a custom id selector for the post and users can’t target anything outside of the post container.
This has allowed people to create some really fantastic posts over the years, here is a quick example I found by just glancing around:
I guess my question is, should we make this a bbcode plugin, or attempt to create a safe method where we can keep HTML selectors contained in posts like we do for our BBCode and investigate that method and offer that instead?
Though I shudder at the idea of letting people use HTML
We want to keep users the ability to continue to format their posts while also making sure that everything stays safe.
Could you not have put that whole guide into one Post and made it a Wiki when you felt like adding more? Having it in multiple posts makes it much harder to read and comprehend imho and creates a lot of wasted space.
Also note that Discourse out-of-the-box supports some restricted HTML anywhere in the post content, not just inside a special wrapper. For example, this post is wrapped inside a <div align=justify>. Unfortunately it does mess with some of the inline formatting, forcing HTML for everything in the paragraph.