Open ifly6 opened 9 months ago
This should be an MVE:
>>> import bbcode >>> p = bbcode.Parser(replace_cosmetic=False) >>> p.format('[list=1][*](c)[/list]') '<ol style="list-style-type:decimal;"><li>©</li></ol>'
I think that whatever formatter is doing the substitution for list has replace_cosmetic set forced to true?
list
replace_cosmetic
I think it's set through the constructor of TagOptions, which defaults to replace_cosmetic = True, because that keyword isn't set when the formatters are added to the parser in install_default_formatters
TagOptions
replace_cosmetic = True
install_default_formatters
This should be an MVE:
I think that whatever formatter is doing the substitution for
list
hasreplace_cosmetic
set forced to true?