Add HTML support for Micropub
This commit is contained in:
@@ -463,6 +463,11 @@ def api_new_note() -> _Response:
|
|||||||
source = request.json["properties"]["content"][0]
|
source = request.json["properties"]["content"][0]
|
||||||
except (ValueError, KeyError):
|
except (ValueError, KeyError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# Handle HTML
|
||||||
|
if isinstance(source, dict):
|
||||||
|
source = source.get("html")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
summary = request.json["properties"]["name"][0]
|
summary = request.json["properties"]["name"][0]
|
||||||
except (ValueError, KeyError):
|
except (ValueError, KeyError):
|
||||||
|
Reference in New Issue
Block a user