Parsers
Parsers convert documents from various formats into the all2md AST (Abstract Syntax Tree).
Each parser implements the BaseParser interface and accepts
format-specific options.
Core Formats
The most commonly used document formats with full-featured parsing support:
Format |
Module |
Description |
|---|---|---|
Advanced PDF parsing with table detection using PyMuPDF |
||
DOCX |
Microsoft Word with formatting preservation |
|
HTML |
HTML/XHTML with configurable conversion |
|
PPTX |
PowerPoint slide-by-slide extraction |
|
EML |
Email with chain detection and attachments |
Data Formats
Structured data and spreadsheet formats:
Format |
Module |
Description |
|---|---|---|
XLSX |
Excel workbooks with sheet selection |
|
CSV |
Comma-separated values with dialect detection |
|
JSON |
JSON documents with pretty-printing |
|
YAML |
YAML configuration files |
|
TOML |
TOML configuration files |
|
INI |
INI configuration files |
Markup Formats
Text markup languages with semantic conversion:
Format |
Module |
Description |
|---|---|---|
Markdown |
Markdown parsing (for round-trip transformations) |
|
RST |
reStructuredText documents |
|
LaTeX |
LaTeX documents with math support |
|
AsciiDoc |
AsciiDoc documents |
|
Org-Mode |
Emacs Org-Mode files |
|
MediaWiki |
MediaWiki/Wikipedia markup |
|
Textile |
Textile markup |
|
DokuWiki |
DokuWiki syntax |
E-book & Document Formats
Long-form document and e-book formats:
Format |
Module |
Description |
|---|---|---|
EPUB |
E-book format with chapter extraction |
|
ODT |
OpenDocument Text |
|
ODP |
OpenDocument Presentation |
|
RTF |
Rich Text Format |
|
FB2 |
FictionBook e-book format |
|
CHM |
Microsoft Compiled HTML Help |
Archive & Web Formats
Archives, web captures, and specialized formats:
Format |
Module |
Description |
|---|---|---|
ZIP/Archive |
ZIP, TAR, 7z, RAR archives |
|
MHTML |
MIME HTML web archives |
|
WebArchive |
Safari web archives |
|
MBOX |
Mailbox files |
|
ENEX |
Evernote export format |
|
OpenAPI |
OpenAPI/Swagger specifications |
|
Jupyter |
Jupyter notebooks |
Other Formats
Additional supported formats:
Format |
Module |
Description |
|---|---|---|
Plain Text |
Plain text files |
|
Source Code |
100+ source-code and config file extensions |
|
BBCode |
Forum BBCode markup |
|
Outlook |
Microsoft Outlook MSG files |
Base Parser Class
All parsers inherit from the base parser class:
Abstract base class for all document parsers. |
Complete Parser Reference
For detailed documentation on all parser modules, see: