Skip to content

Add definition lists to bbcode

Mario requested to merge Treer:bbcode into dev

Created by: Treer

People's Wall posts probably don't need definition lists, but documentation pages frequently do and most are in bbcode.

This started with not being able to fix the formatting in hidden_configs.bb, so I've marked that up with [dl] tags, along with another page that had some formatting issues - if anyone wants to see how it renders (/help/hidden_configs and /help/permissions).

Simple syntax is:

[dl]
[*= item  ] description
[*= item2 ] description2
[/dl]

The full syntax is mentioned in bbcode.html (which I assumed is now written/maintained in html by hand rather than generated from somewhere else?)

I don't know how conservative people are with additions to the bbcode parser, this [dl] addition is mostly self-contained in its own function.

Merge request reports