From a161378975ac5aa5fd37f4f7d5635124d4a69335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Voron?= Date: Wed, 30 Oct 2024 13:24:42 +0100 Subject: [PATCH] server/article: fix MD image not correctly output in export --- server/polar/article/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/polar/article/service.py b/server/polar/article/service.py index 2a709c3599..98f91ccbcd 100644 --- a/server/polar/article/service.py +++ b/server/polar/article/service.py @@ -518,7 +518,7 @@ async def export( f"articles/{article.slug}/{match.group(2)}", await stream.aread(), ) - body = body.replace(match.group(0), f"./{match.group(2)}") + body = body.replace(match.group(0), f"./{match.group(2)})") frontmatter = f"""---\n{"\n".join(f"{k}: {v}" for k, v in frontmatter_dict.items())}\n---\n\n""" content = f"{frontmatter}{body}"