* fix: stop markdown table regex catastrophic backtracking The line_pattern in MarkdownTableUtil used overlapping character classes ([\t ]* and [^|\r\n]*) so a `|`-prefixed line missing its trailing `|` forced the engine to explore an exponential number of backtracking paths, stalling the single-threaded docreader gRPC event loop (100% CPU, health check timeout). Replace whole-text regex substitution with an O(n) line-based pass that only treats rows beginning and ending with `|` as tables, and preserves the previous align_pattern semantics via _is_alignment_row. Fixes #2768 Co-Authored-By: Claude <noreply@anthropic.com> * fix: keep lone pipe rows and normalize CRLF in table formatter A single "|" was rewritten into an empty table row and then dropped. Unify CR/LF before the line scan so exported Markdown tables format without mixed endings. --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: wizardchen <wizardchen@tencent.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base_parser.py | ||
| chain_parser.py | ||
| concurrency.py | ||
| doc_parser.py | ||
| docx2_parser.py | ||
| docx_merge.py | ||
| docx_parser.py | ||
| epub_parser.py | ||
| excel_convert.py | ||
| excel_parser.py | ||
| html_parser.py | ||
| image_parser.py | ||
| markdown_parser.py | ||
| markitdown_parser.py | ||
| mhtml_parser.py | ||
| opendataloader_parser.py | ||
| parser.py | ||
| pdf_parser.py | ||
| ppt_convert.py | ||
| pptx_media.py | ||
| registry.py | ||
| web_parser.py | ||
| xlsx_merge.py | ||
| xlsx_repair.py | ||
| xmind_parser.py | ||