add motd schema and motd editor

This commit is contained in:
2025-11-27 19:47:26 +03:00
parent 04fd3f5d20
commit fca214dfcf
12 changed files with 156 additions and 32 deletions

View File

@@ -40,7 +40,8 @@ def babycode_preview():
markup = request.json.get('markup')
if not markup or not isinstance(markup, str):
return {'error': 'markup field missing or invalid type'}, 400
rendered = babycode_to_html(markup)
banned_tags = request.json.get('banned_tags', [])
rendered = babycode_to_html(markup, banned_tags)
return {'html': rendered}