add motd schema and motd editor
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user