I’m using the official BBCode plugin on my Discourse site, and I’d love for [left]
and [right]
tags to be supported within table cells.
Current working usage
These tags work fine outside of tables:
[left]
This is left-aligned text.
[/left]
[right]
This is right-aligned text.
[/right]
*Renders like this:
Problem inside tables
However, using the same tags within table cells renders them literally:
| [right] quantity [/right] | [left] dimensional formula [/left] |
|---------------------------|-------------------------------------|
| [right] period $p$ [/right] | [left] $L^0 M^0 T^1$ [/left] |
| [right] length of string $\ell$ [/right] | [left] $L^1 M^0 T^0$ [/left] |
Renders like this:
What I’d like
I’d like [right]...[/right]
and [left]...[/left]
to work within Markdown table cells, so I can align content like this:
(right-aligned) | (left-aligned) |
---|---|
period p | L^0 M^0 T^1 |
length of string \ell | L^1 M^0 T^0 |
This would be very useful in mathematical, scientific, or multilingual tables.
Possible Solutions
- Support
[right]
/[left]
as inline BBCode inside cells - Or add new inline tags like
[align=right]...[/align]
or[cell=right]...[/cell]
Thanks so much for considering this!