# Markdown Extensions for BBCode

**URL:** https://meta.discourse.org/t/markdown-extensions-for-bbcode/150224
**Category:** Development
**Created:** [May 3, 2020, 3:56am UTC](https://meta.discourse.org/t/markdown-extensions-for-bbcode/150224 "2020-05-03T03:56:06Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![ego-lay\_atman-bay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ego-lay_atman-bay/32/255458_2.png) [@ego-lay\_atman-bay](https://meta.discourse.org/u/ego-lay_atman-bay)
#### Post date: [May 29, 2024, 2:46am UTC](https://meta.discourse.org/t/markdown-extensions-for-bbcode/150224/6 "2024-05-29T02:46:36Z")

</div>

I know this post is from 2020, but seeing as how it was never answered (other than just saying “go look at other code” and “tables are too hard”) I thought I’d chip in and explain help how I can, since I’m currently writing my own bbcode plugin, and had to struggle with absolutely no documentation.

I took a look at your `[table]` bbcode syntax, and it’s a perfectly reasonable plugin to make, it’s just some wrapping. Seriously, I don’t think sam even looked at the link you sent, because your table bbcode format, is pretty much just the html table format, but with bbcode tags.

This post really helped explain a bit about how to do this.

> [@Developer's guide to Markdown extensions](https://meta.discourse.org/t/developers-guide-to-markdown-extensions/66023):
>
> Discourse uses a Markdown engine called [Markdown-it](https://github.com/markdown-it/markdown-it). Here are some dev notes that will help you either fix bugs in core or create your new plugins. The Basics Discourse only contains a few helpers on top of the engine, so the vast majority of learning that needs to be done, is understanding Markdown It. The [docs directory](https://github.com/markdown-it/markdown-it/tree/master/docs) contains the current documentation. I strongly recommend reading: The [architecture document](https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md) to understand at a top level how the engine works. [Development](https://github.com/markdown-it/markdown-it/blob/master/docs/development.md) for basic d…

I don’t have time right now to explain how to do what you want to do (and test it to see if it actually works), so right now I can tell you that the `html_raw` and `html_block` token types are pretty handy. Also, the best way to figure out if it’s actually working, is by putting in `console.log()` in the `wrap` function, and then see what you’re actually getting back in the console (and see if what you’re doing is working, without having to worry about discourse’s aggressive sanitizer).

---

_[View the full topic](https://meta.discourse.org/t/markdown-extensions-for-bbcode/150224)._
