Skip to content

Commit

Permalink
server/article: fix MD image not correctly output in export
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie567 committed Oct 30, 2024
1 parent 133ebe7 commit a161378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/polar/article/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit a161378

Please sign in to comment.