# Formatting posts using markdown, BBCode, and HTML

**URL:** https://meta.discourse.org/t/formatting-posts-using-markdown-bbcode-and-html/239348
**Category:** Using Discourse
**Tags:** reference
**Created:** [August 25, 2014, 5:47am UTC](https://meta.discourse.org/t/formatting-posts-using-markdown-bbcode-and-html/239348 "2014-08-25T05:47:06Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [December 16, 2022, 6:02pm UTC](https://meta.discourse.org/t/formatting-posts-using-markdown-bbcode-and-html/239348/6 "2022-12-16T18:02:11Z")

</div>

> [@rahim123](#):
>
> Text color and text background color doesn’t seem to work with `<span>` or bbcode, am I missing something?

You can make use of this guide:

> [@Customize posts' contents with your own styles](https://meta.discourse.org/t/customize-posts-contents-with-your-own-styles/257738):
>
> Requirementsinformation_source To be able to use these tips and tricks, you need to be an administrator of either a self-hosted Discourse instance or a [Discourse-hosted plan](https://discourse.org/pricing) higher than Basic. Introduction Discourse supports several methods to format and customize a post’s contents. You can find the list here: But sometimes, you’ll want something more specific, for example, a link that looks like a button. [Green button] This is the kind of modification we’ll learn here. The logic I’l…

(And see it in action here: [📜 [Wiki] Schlumpf hub serial numbers reference - Unicycles and Equipment - Unicyclist.com](https://unicyclist.com/t/wiki-schlumpf-hub-serial-numbers-reference/106130))

Or use this plugin that extends BBcode support:

> [@Discourse BBCode](https://meta.discourse.org/t/discourse-bbcode/65425):
>
> information_sourceSummary Discourse BBCode adds the ability to use BBCode to format posts.discourse2Hosted by us? This plugin is available on our Enterprise plansmechanicSelf-host Install [Install plugins on a self-hosted site](https://meta.discourse.org/t/install-plugins-on-a-self-hosted-site/19157)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-bbcode](https://github.com/discourse/discourse-bbcode) The Discourse BBCode plugin enhances the Markdown composer [[1]](#footnote-304175-1) with support for the [BBCode syntax](https://www.bbcode.org/reference.php) beyond what is included by default (i.e. [i], [b], [s], [u], […

As for the allowed HTML tags, I believe this is the reference:  
[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/pretty-text/addon/allow-lister.js#L115](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/pretty-text/addon/allow-lister.js#L115)

Though I don’t find table HTML tags (which are allowed) inside for some reason.

Maybe because they are referenced here:

[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/pretty-text/engines/discourse-markdown/table.js#L31](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/pretty-text/engines/discourse-markdown/table.js#L31)

---

_[View the full topic](https://meta.discourse.org/t/formatting-posts-using-markdown-bbcode-and-html/239348)._
