diff --git a/blueprints/api.py b/blueprints/api.py index aa7d8d3..0db0431 100644 --- a/blueprints/api.py +++ b/blueprints/api.py @@ -463,6 +463,11 @@ def api_new_note() -> _Response: source = request.json["properties"]["content"][0] except (ValueError, KeyError): pass + + # Handle HTML + if isinstance(source, dict): + source = source.get("html") + try: summary = request.json["properties"]["name"][0] except (ValueError, KeyError):