awesome-python/website
Vinta Chen 1c67c9f0e6
feat: replace regex README parser with markdown-it-py AST parser
Introduce parse_readme() which uses MarkdownIt to build a full AST
instead of line-by-line regex matching. The function splits the document
at the thematic break, groups nodes by h2 heading, extracts category
descriptions from leading italic paragraphs, and separates the
Categories, Resources, and Contributing sections cleanly.

Add markdown-it-py==4.0.0 (+ mdurl) as a runtime dependency to support
the new parser.

Tests cover section counts, names, slugs, descriptions, content
presence, boundary conditions (no separator, no description), and mixed
description markup.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-18 17:21:49 +08:00
..
data data: remove zipline entry from github_stars.json 2026-03-18 13:57:36 +08:00
static add custom website build system 2026-03-18 13:48:49 +08:00
templates add custom website build system 2026-03-18 13:48:49 +08:00
tests feat: replace regex README parser with markdown-it-py AST parser 2026-03-18 17:21:49 +08:00
build.py add custom website build system 2026-03-18 13:48:49 +08:00
fetch_github_stars.py add custom website build system 2026-03-18 13:48:49 +08:00
readme_parser.py feat: replace regex README parser with markdown-it-py AST parser 2026-03-18 17:21:49 +08:00