perf: markdown render perf

This commit is contained in:
Soulter
2023-06-10 10:02:23 +00:00
parent bf0d82fe67
commit 8e4a72c97b

View File

@@ -213,7 +213,7 @@ def render_markdown(markdown_text, image_width=800, image_height=600, font_size=
cnt = 1
if font.getsize(line)[0] > image_width:
cp = line
for ii in range(len(l)):
for ii in range(len(line)):
if ii % max_width == 0:
cp = cp[:ii] + '\n' + cp[ii:]
pre_lines[i] = cp