From c12dadfdb95051702a66a7512f66a905d01e56ed Mon Sep 17 00:00:00 2001 From: Ari Archer Date: Wed, 30 Aug 2023 02:47:32 +0300 Subject: [PATCH] update @ Wed 30 Aug 02:47:32 EEST 2023 Signed-off-by: Ari Archer --- scripts/blog.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/blog.py b/scripts/blog.py index 56d4dd8..c81c737 100755 --- a/scripts/blog.py +++ b/scripts/blog.py @@ -544,7 +544,7 @@ def read_post(path: str) -> str: # markdown -TITLE_LINKS_RE: typing.Final[str] = r"<:#[^>]+>" +TITLE_LINKS_RE: typing.Final[str] = r"<#:[^>]+?>" def parse_inline_titlelink( @@ -862,7 +862,10 @@ def build(config: typing.Dict[str, typing.Any]) -> int: locale=config["locale"], post_creation_time=rformat_time(post["created"]), post_description=html_escape(post["description"]), - post_read_time=read_time_of_markdown(post["content"], config["read-wpm"]).text, + post_read_time=read_time_of_markdown( + post["content"], + config["read-wpm"], + ).text, post_edit_time=( "" if "edited" not in post