#2438·markitdown

HTML/DOCX: 表格单元中的管道字符会破坏 Markdown 表格

作者: soroush5创建于 2026年9月10日更新于 2026年9月10日
import io from markitdown import MarkItDown html = ( '' '
NameNote
AliceHas a | pipe
' ) print(MarkItDown().convert_stream( io.BytesIO(html.encode()), file_extension='.html').markdown) # Before: | Alice | Has a | pipe | (3 列, 断开) # After: | Alice | Has a \| pipe | (2 列, 正确)

内容来源: microsoft/markitdown