Enable [left] / [right] BBCode Blocks Inside Table Cells

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.


:white_check_mark: Current working usage

These tags work fine outside of tables:

[left]
This is left-aligned text.
[/left]

[right]
This is right-aligned text.
[/right]

:right_arrow: *Renders like this:


:cross_mark: 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] |

:right_arrow: Renders like this:


:bullseye: 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.


:light_bulb: 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!

Why don’t you use markdown?

quantity dimensional formula
period p L^0 M^0 T^1
length of string \ell L^1 M^0 T^0
| quantity  |  dimensional formula  |
|---:|:---|
|  period $p$  |  $L^0 M^0 T^1$  |
|  length of string $\ell$  |  $L^1 M^0 T^0$  |
6 Likes

| quantity  |  dimensional formula  |
|---:|:---|
|  period $p$  |  $L^0 M^0 T^1$  |
|  length of string $\ell$  |  $L^1 M^0 T^0$  |
quantity dimensional formula
period p L^0 M^0 T^1
length of string \ell L^1 M^0 T^0

nice! that works

1 Like