nodecraft / ya-bbcode

Yet another BBCode Parser
MIT License
17 stars 5 forks source link

Ability to force closing tag in specific cases #214

Open magne4000 opened 1 year ago

magne4000 commented 1 year ago

Steam bbcode is ugly. Lists are usually formatted like this:

[list]
    [*]aaa
    [*]bbb
    [*]ccc
[/list] 

The closing tag for [*] is not mandatory, but I'd like to be able to force a closing </li> even if [/*] is not present. In this case, a newline or the closing [/list] tag marks the end of a list element.

Cherry commented 1 year ago

Thanks for the issue! Steam bbcode sure is ugly 😅

I'm not sure this is something we'll be able to fix ourselves in a timely manner, but would definitely encourage a PR that adds support for this.