diff --git a/app/api.py b/app/api.py index cf253e6..fb0308f 100644 --- a/app/api.py +++ b/app/api.py @@ -24,6 +24,7 @@ def data_valid(self, title: str, content: str) -> bool: def update_content(self, id:str, title: str, body: str, description:str, status:str, published_at:datetime) -> None: Contents.query.filter_by(id=id).update({ + #Contents.slug:slug(title), Contents.title:title, Contents.body:body, Contents.status:status, diff --git a/static/css/markdown.css b/static/css/markdown.css index 013876a..dac461a 100644 --- a/static/css/markdown.css +++ b/static/css/markdown.css @@ -87,6 +87,7 @@ #html-preview li, #markdown-preview li { + margin-left:20px; margin-bottom: 0.5em; }