perf: 支持markdown渲染

This commit is contained in:
Soulter
2023-06-10 13:10:32 +00:00
parent 628b661a18
commit a9023d6f3a
+1 -1
View File
@@ -249,7 +249,7 @@ def render_markdown(markdown_text, image_width=800, image_height=600, font_size=
markdown_text = '\n'.join(pre_lines)
print("Pre process done, height: ", height)
image_height = height
image_width += 10
# 创建空白图像
image = Image.new('RGB', (image_width, image_height), bg_color)