v0.2.0 — CLI, robustness fixes, and CI
Added
- New
table2mdCLI: file, URL, or stdin input (curl … | table2mdworks), with--format markdown|json|csv,--strategy,--dito-prefix,--table,--output,--no-links/--no-bold/--no-italic, and--parser. - Public API exports from the package root:
from table2md import TableParser. py.typedmarker (PEP 561).- CI workflow: ruff + pytest on Python 3.9 and 3.12.
- Test suite grown from 9 to 50 tests, including the 13 example cases as regression tests.
Fixed
- Invalid
colspan/rowspanvalues ("","abc","0", negative) no longer crash the parser or silently drop cell content. rowspanis now capped at the last table row (matching browser behavior); huge values likerowspan="10000"no longer allocate unbounded grids.- HTML comments no longer leak into cell output.
- README installation instructions now name the actual PyPI package (
html-table-rescuer).
Full Changelog: v0.1.0...v0.2.0