bbcode
bbcode copied to clipboard
A pure python bbcode parser and formatter.
Given input like: ```python >>> import bbcode >>> bbcode.render_html('He said "[I]n the matter of X v Y, X wins".') 'He said "n the matter of X v Y, X wins".'...
This should be an MVE: ``` >>> import bbcode >>> p = bbcode.Parser(replace_cosmetic=False) >>> p.format('[list=1][*](c)[/list]') '©' ``` I think that whatever formatter is doing the substitution for `list` has `replace_cosmetic`...
If I need to create or add a new formatter with the simple formatter. It is possible to add it and then used it or do you have an example...