Skip to content

Modernize MediaWiki wikitext parsing - #1

Merged
Jord-JD merged 2 commits into
masterfrom
agent/modern-mediawiki-parser
Jul 18, 2026
Merged

Jord-JD merged 2 commits into
masterfrom
agent/modern-mediawiki-parser

Conversation

@Jord-JD

@Jord-JD Jord-JD commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • send wikitext to the current MediaWiki parse API with POST instead of URL-limited GET
  • add timeouts, user-agent validation, injectable transport, trusted endpoint and page-title configuration
  • handle HTTP, JSON, API, and malformed response failures explicitly
  • move the default cache from vendor/ to the system temporary directory, with TTL and disable controls
  • validate output formats and improve whitespace-preserving plain-text conversion
  • add the WikitextParser class alias used by the old README and correct all documentation
  • accept DO File Cache PSR-6 v4 alongside v3 and remove the unused DOM extension requirement
  • add deterministic PHP 7.1 and PHP 8.5 tests

Verification

  • checked MediaWiki's machine-generated current action=parse help
  • live POST probe returned the current formatversion 2 text response
  • jq empty composer.json
  • git diff --check

@Jord-JD
Jord-JD merged commit 98fc912 into master Jul 18, 2026
4 checks passed
@Jord-JD
Jord-JD deleted the agent/modern-mediawiki-parser branch July 18, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant