修复转换markdown时部分日志未显示、不使用markdown解析引擎时出现的问题

This commit is contained in:
xunbu
2025-08-09 21:15:43 +08:00
parent 31eb711687
commit 9775bf479b
5 changed files with 20 additions and 12 deletions

View File

@@ -37,11 +37,10 @@ client_async = httpx.AsyncClient(trust_env=False, timeout=timeout, proxy=None, v
class ConverterMineru(X2MarkdownConverter):
def __init__(self, config: ConverterMineruConfig, logger: Logger = global_logger):
def __init__(self, config: ConverterMineruConfig):
super().__init__(config=config)
self.mineru_token = config.mineru_token.strip()
self.formula = config.formula_ocr
self.logger = logger
def _get_header(self):
return {