fix import

This commit is contained in:
2025-04-24 19:46:39 +02:00
parent 3004ab4b41
commit b94ad5856d

View File

@ -12,6 +12,7 @@ import concurrent.futures
import urllib.request
import base64
from .lib.bs4 import BeautifulSoup as bs4
from .lib.bs4.element import Comment
from functools import partial
@ -61,7 +62,7 @@ def markdown2html(markdown, basepath, re_render, resources, viewport_width, font
# remove comments, because they pollute the console with error messages
for comment_element in soup.find_all(
text=lambda text: isinstance(text, bs4.Comment)
text=lambda text: isinstance(text, Comment)
):
comment_element.extract()