| feat: modernize for Python 3.10+, switch to uv, relicense MIT, release 1.0.0 This is the first release in 9 years. The package was Python 2.7 / 3.5 era and the README badges were syntactically inverted so none of them rendered. Drop the abandoned tooling, fix the rendering bugs in the core convert path, and cut a clean 1.0.0. Build & tooling - Replace setup.py with PEP 621 pyproject + hatchling - Manage with uv (uv.lock committed, uv sync as the entrypoint) - Python floor: 2.7/3.5/3.6 -> 3.10 - Add ruff (check + format) and replace the missing CI with GH Actions on a 3.10/3.11/3.12 matrix - Add pre-commit (ruff hook) License - Relicense GPL-3.0 -> MIT, modeled on the gain/toapi sibling projects - License declared via PEP 639 SPDX `license = "MIT"` + `license-files` - Bump copyright year 2017 -> 2017-2026 Code fixes - `tomd.py`: wrap input in a sentinel `<div>` before parsing so pyquery's `html()` round-trip doesn't strip the only top-level tag. Previously `tomd.convert("<h1>x</h1>")` returned `"x"` instead of `"# x"`, breaking the documented README example - `tomd.py`: guard `if "http" in href:` against `None` hrefs (would crash on `<a>` without href) - Remove stray `print(self._markdown)` debug call Tests - Replace the live-network smoke `test_tomd.py` (which hit GitHub at import time) with nine deterministic pytest cases covering headings, emphasis, links, images, lists, blockquote, hr, and the module-level `convert` helper Docs & README - Rewrite README with the modern for-the-badge style badges (CI, PyPI, Python, License, Downloads, Ruff, uv), fix the inverted ``/`[](link)` syntax that broke every badge, add a coverage table and a runnable example - Drop `ex.md` (was just a stale sample output from the old smoke test) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> | 5 months ago |
| chore: apply ruff format to satisfy CI CI runs `ruff format --check`; the 1.1.0 commit only ran `ruff check`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> | 5 months ago |
| feat: modernize for Python 3.10+, switch to uv, relicense MIT, release 1.0.0 This is the first release in 9 years. The package was Python 2.7 / 3.5 era and the README badges were syntactically inverted so none of them rendered. Drop the abandoned tooling, fix the rendering bugs in the core convert path, and cut a clean 1.0.0. Build & tooling - Replace setup.py with PEP 621 pyproject + hatchling - Manage with uv (uv.lock committed, uv sync as the entrypoint) - Python floor: 2.7/3.5/3.6 -> 3.10 - Add ruff (check + format) and replace the missing CI with GH Actions on a 3.10/3.11/3.12 matrix - Add pre-commit (ruff hook) License - Relicense GPL-3.0 -> MIT, modeled on the gain/toapi sibling projects - License declared via PEP 639 SPDX `license = "MIT"` + `license-files` - Bump copyright year 2017 -> 2017-2026 Code fixes - `tomd.py`: wrap input in a sentinel `<div>` before parsing so pyquery's `html()` round-trip doesn't strip the only top-level tag. Previously `tomd.convert("<h1>x</h1>")` returned `"x"` instead of `"# x"`, breaking the documented README example - `tomd.py`: guard `if "http" in href:` against `None` hrefs (would crash on `<a>` without href) - Remove stray `print(self._markdown)` debug call Tests - Replace the live-network smoke `test_tomd.py` (which hit GitHub at import time) with nine deterministic pytest cases covering headings, emphasis, links, images, lists, blockquote, hr, and the module-level `convert` helper Docs & README - Rewrite README with the modern for-the-badge style badges (CI, PyPI, Python, License, Downloads, Ruff, uv), fix the inverted ``/`[](link)` syntax that broke every badge, add a coverage table and a runnable example - Drop `ex.md` (was just a stale sample output from the old smoke test) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> | 5 months ago |
| feat: modernize for Python 3.10+, switch to uv, relicense MIT, release 1.0.0 This is the first release in 9 years. The package was Python 2.7 / 3.5 era and the README badges were syntactically inverted so none of them rendered. Drop the abandoned tooling, fix the rendering bugs in the core convert path, and cut a clean 1.0.0. Build & tooling - Replace setup.py with PEP 621 pyproject + hatchling - Manage with uv (uv.lock committed, uv sync as the entrypoint) - Python floor: 2.7/3.5/3.6 -> 3.10 - Add ruff (check + format) and replace the missing CI with GH Actions on a 3.10/3.11/3.12 matrix - Add pre-commit (ruff hook) License - Relicense GPL-3.0 -> MIT, modeled on the gain/toapi sibling projects - License declared via PEP 639 SPDX `license = "MIT"` + `license-files` - Bump copyright year 2017 -> 2017-2026 Code fixes - `tomd.py`: wrap input in a sentinel `<div>` before parsing so pyquery's `html()` round-trip doesn't strip the only top-level tag. Previously `tomd.convert("<h1>x</h1>")` returned `"x"` instead of `"# x"`, breaking the documented README example - `tomd.py`: guard `if "http" in href:` against `None` hrefs (would crash on `<a>` without href) - Remove stray `print(self._markdown)` debug call Tests - Replace the live-network smoke `test_tomd.py` (which hit GitHub at import time) with nine deterministic pytest cases covering headings, emphasis, links, images, lists, blockquote, hr, and the module-level `convert` helper Docs & README - Rewrite README with the modern for-the-badge style badges (CI, PyPI, Python, License, Downloads, Ruff, uv), fix the inverted ``/`[](link)` syntax that broke every badge, add a coverage table and a runnable example - Drop `ex.md` (was just a stale sample output from the old smoke test) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> | 5 months ago |
| feat: modernize for Python 3.10+, switch to uv, relicense MIT, release 1.0.0 This is the first release in 9 years. The package was Python 2.7 / 3.5 era and the README badges were syntactically inverted so none of them rendered. Drop the abandoned tooling, fix the rendering bugs in the core convert path, and cut a clean 1.0.0. Build & tooling - Replace setup.py with PEP 621 pyproject + hatchling - Manage with uv (uv.lock committed, uv sync as the entrypoint) - Python floor: 2.7/3.5/3.6 -> 3.10 - Add ruff (check + format) and replace the missing CI with GH Actions on a 3.10/3.11/3.12 matrix - Add pre-commit (ruff hook) License - Relicense GPL-3.0 -> MIT, modeled on the gain/toapi sibling projects - License declared via PEP 639 SPDX `license = "MIT"` + `license-files` - Bump copyright year 2017 -> 2017-2026 Code fixes - `tomd.py`: wrap input in a sentinel `<div>` before parsing so pyquery's `html()` round-trip doesn't strip the only top-level tag. Previously `tomd.convert("<h1>x</h1>")` returned `"x"` instead of `"# x"`, breaking the documented README example - `tomd.py`: guard `if "http" in href:` against `None` hrefs (would crash on `<a>` without href) - Remove stray `print(self._markdown)` debug call Tests - Replace the live-network smoke `test_tomd.py` (which hit GitHub at import time) with nine deterministic pytest cases covering headings, emphasis, links, images, lists, blockquote, hr, and the module-level `convert` helper Docs & README - Rewrite README with the modern for-the-badge style badges (CI, PyPI, Python, License, Downloads, Ruff, uv), fix the inverted ``/`[](link)` syntax that broke every badge, add a coverage table and a runnable example - Drop `ex.md` (was just a stale sample output from the old smoke test) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> | 5 months ago |
| feat: modernize for Python 3.10+, switch to uv, relicense MIT, release 1.0.0 This is the first release in 9 years. The package was Python 2.7 / 3.5 era and the README badges were syntactically inverted so none of them rendered. Drop the abandoned tooling, fix the rendering bugs in the core convert path, and cut a clean 1.0.0. Build & tooling - Replace setup.py with PEP 621 pyproject + hatchling - Manage with uv (uv.lock committed, uv sync as the entrypoint) - Python floor: 2.7/3.5/3.6 -> 3.10 - Add ruff (check + format) and replace the missing CI with GH Actions on a 3.10/3.11/3.12 matrix - Add pre-commit (ruff hook) License - Relicense GPL-3.0 -> MIT, modeled on the gain/toapi sibling projects - License declared via PEP 639 SPDX `license = "MIT"` + `license-files` - Bump copyright year 2017 -> 2017-2026 Code fixes - `tomd.py`: wrap input in a sentinel `<div>` before parsing so pyquery's `html()` round-trip doesn't strip the only top-level tag. Previously `tomd.convert("<h1>x</h1>")` returned `"x"` instead of `"# x"`, breaking the documented README example - `tomd.py`: guard `if "http" in href:` against `None` hrefs (would crash on `<a>` without href) - Remove stray `print(self._markdown)` debug call Tests - Replace the live-network smoke `test_tomd.py` (which hit GitHub at import time) with nine deterministic pytest cases covering headings, emphasis, links, images, lists, blockquote, hr, and the module-level `convert` helper Docs & README - Rewrite README with the modern for-the-badge style badges (CI, PyPI, Python, License, Downloads, Ruff, uv), fix the inverted ``/`[](link)` syntax that broke every badge, add a coverage table and a runnable example - Drop `ex.md` (was just a stale sample output from the old smoke test) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> | 5 months ago |
| feat: rewrite converter as tree walker, bump to 1.1.0 Replace pyquery + str.replace() approach with an lxml tree walker. The old impl silently broke common cases (nested lists flattened, repeated paragraphs collapsed, <br> lost, language hints on <pre><code> discarded, tables missing separators). The new converter dispatches per-tag, skips script/style/iframe, collapses whitespace outside <pre>, and emits clean CommonMark/GFM. Public API (Tomd class, module-level convert) is unchanged. Expanded coverage: - nested + mixed ordered/unordered lists, <ol start=N> - links: relative, fragment, mailto, title, empty text, URLs with spaces - images with title, image-in-link - inline code with literal backticks (longer-fence escape) - code blocks with language-/lang- class hints - tables with/without thead, pipe escaping, formatting in cells - blockquotes: multi-paragraph, nested, containing lists - HTML entities, full unicode, <br> hard breaks, definition lists - safety: malformed HTML, None/empty input, script/style/iframe stripped Tests grow from 9 to 72 cases including blog post, docs, README, Wikipedia, Stack Overflow, news article, and full <html><head><body> document snippets. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> | 5 months ago |
| chore: apply ruff format to satisfy CI CI runs `ruff format --check`; the 1.1.0 commit only ran `ruff check`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> | 5 months ago |
| chore: apply ruff format to satisfy CI CI runs `ruff format --check`; the 1.1.0 commit only ran `ruff check`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> | 5 months ago |