perf: markdown render perf
This commit is contained in:
1 parent
987383f957
commit
bf0d82fe67
1 file changed
+1
-1
@@ -212,7 +212,7 @@ def render_markdown(markdown_text, image_width=800, image_height=600, font_size=
|
||||
else:
|
||||
cnt = 1
|
||||
if font.getsize(line)[0] > image_width:
|
||||
cp = l
|
||||
cp = line
|
||||
for ii in range(len(l)):
|
||||
if ii % max_width == 0:
|
||||
cp = cp[:ii] + '\n' + cp[ii:]
|
||||
|
||||
Reference in new issue
Block a user