# 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:** 13

<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: [June 12, 2023, 4:23pm UTC](https://meta.discourse.org/t/formatting-posts-using-markdown-bbcode-and-html/239348/13 "2023-06-12T16:23:23Z")

</div>

The `style` attribute isn’t allowed in Discourse because it could easily break things.

Also, Discourse has a certain philosophy on how information show be presented in posts, and limits tags and attributes on purpose.

The `align` attribute on `<div>` is explicitly allowed here: [https://github.com/discourse/discourse/blob/main/app/assets/javascripts/pretty-text/addon/allow-lister.js#LL147C2-L147C16](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/pretty-text/addon/allow-lister.js#LL147C2-L147C16)

If you were to migrate a forum and wanted to keep some special styling like colors, I’d go with [Discourse BBCode](https://meta.discourse.org/t/discourse-bbcode/65425) and edit the importer if needed 🙂

---

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