2025.09.17-19:07:57

This commit is contained in:
2025-09-17 19:07:58 +02:00
parent ff37c9cd8b
commit 38a85cb9d5
47 changed files with 1530 additions and 38 deletions

View File

@@ -0,0 +1,28 @@
import bbcode
from . import formatters
PARSER = bbcode.Parser(newline="\n",escape_html=True)
def _():
for i in formatters.SIMPLE_FORMATTERS:
if len(i) == 0:
continue
if len(i) == 1:
kwargs = {}
else:
kwargs = i[1]
PARSER.add_simple_formatter(*i[0],**kwargs)
for i in formatters.FORMATTERS:
if len(i) == 0:
continue
if len(i) == 1:
kwargs = {}
else:
kwargs = i[1]
PARSER.add_formatter(*i[0],**kwargs)
_()
del _