Discourse BBCode nested lists

I’ve noticed that the BBCode plugin, while having lists, does not allow nesting. When I try a nested list using BBCode, it just continues on the top-level list.

I would like to ask if it is possible to add nested BBCode lists to Discourse.

1 Like
  • You
    • Mean
      • This?
- You
  - Mean
     - This?

It’s done with spacing (2 spaces) in front of - or *.

2 Likes

I’m meaning something more like

[list=1]
[*] Item 1
[*] Item 2
[list=i]
[*] Item 1
[*] Item 2
[/list]
[*] Item 3
[/list]

I’m asking this especially regarding ordered lists that use systems like alphabetical numbering or Roman numerals.

2 Likes

Hello and welcome @Robotos :slight_smile:

I think it would be good to get parity between them, but just in case a workaround would be useful in the short term I think you can do this currently with the html:

<ol type="A">
<li> item 1
<ol type="i">
<li>item 1.1
<li>item 1.2
</ol>
<li> item 2
<li> item 3
</ol>
  1. item 1
    1. item 1.1
    2. item 1.2
  2. item 2
  3. item 3
2 Likes

I may be wrong, but I think it’s not possible to achieve what you want with standard BBCode.

I suspect adding the feature would be tedious and not reliable in the sense that it won’t work if you paste your Discourse’s BBCode into another software.

It could also cause issues if you need to parse your BBcode to another formatting language in the future.


That said, I’m not a programmer. It’s just more of feelings and thoughts.