Skip to content

Add generic Markdown exporter - #1

Merged
JSv4 merged 1 commit into
mainfrom
codex/generic-markdown-exporter
Jul 6, 2026
Merged

JSv4 merged 1 commit into
mainfrom
codex/generic-markdown-exporter

Conversation

@JSv4

@JSv4 JSv4 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a generic Markdown export path for Warp-Ingest without introducing any benchmark-specific module, schema, or adapter dependency.

  • Adds warp_ingest.ingestor.markdown_exporter for JSON-friendly block serialization, per-page Markdown rendering, whole-document Markdown rendering, and PDF-to-Markdown helpers.
  • Adds pdf_ingestor.parse_to_markdown(...) as a convenience wrapper alongside parse_to_opencontracts(...).
  • Uses Warp's native table engine optionally for table HTML, while preserving fallback rendering from Warp table-row blocks.
  • Documents the new library helper in the README.

Validation

  • uv run black warp_ingest/ingestor/markdown_exporter.py warp_ingest/ingestor/pdf_ingestor.py warp_ingest/ingestor/table_engine.py tests/test_markdown_exporter.py
  • uv run pytest tests/test_markdown_exporter.py tests/test_fixtures_parse.py tests/test_table_engine.py

Notes

This intentionally keeps ParseBench-specific provider and layout adapter code out of the library. The exported functions are framework-neutral and usable by any consumer that wants Markdown from Warp output.

@JSv4
JSv4 marked this pull request as ready for review July 6, 2026 03:31
@JSv4 JSv4 changed the title [codex] Add generic Markdown exporter Add generic Markdown exporter Jul 6, 2026
@JSv4
JSv4 merged commit 9fea3e4 into main Jul 6, 2026
10 checks passed
@JSv4
JSv4 deleted the codex/generic-markdown-exporter branch July 6, 2026 03:53
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