Skip to content

feat: add clean html-to-markdown conversion for agentic scraping (#269) - #274

Merged
rnunley-nmg merged 6 commits into
mainfrom
269-add-clean-html-to-markdown-conversion-for-agentic-scraping
Apr 27, 2026
Merged

rnunley-nmg merged 6 commits into
mainfrom
269-add-clean-html-to-markdown-conversion-for-agentic-scraping

Conversation

@rnunley-nmg

Copy link
Copy Markdown
Contributor

Summary

  • Add agentchrome markdown to convert browser pages and raw HTML inputs into cleaned Markdown for agentic scraping workflows.
  • Apply deterministic cleanup and structure preservation for primary content, selector scoping, link/image controls, code fences, and readable tables.
  • Extend help/man surfaces and focused BDD coverage, including the tracked fixture path used by the markdown scenarios.

Acceptance Criteria

From specs/feature-add-clean-html-to-markdown-conversion-for-agentic-scraping/requirements.md:

  • AC1: Convert the current browser page to cleaned Markdown.
  • AC2: Convert raw HTML from file, stdin, and URL inputs.
  • AC3: Prefer primary content containers when present.
  • AC4: Scope extraction explicitly when requested.
  • AC5: Control links and images deterministically.
  • AC6: Preserve code and readable document structure.
  • AC7: Keep AgentChrome output and error contracts.
  • AC8: Document and expose the new CLI surface.
  • AC9: Bound raw input and generated output.

Test Plan

From specs/feature-add-clean-html-to-markdown-conversion-for-agentic-scraping/tasks.md testing phase:

  • cargo fmt --check
  • cargo test --test bdd -- --input tests/features/clean-html-markdown.feature
  • Full browser-page AC1 smoke remains dependent on a live Chrome session in the BDD fixture path.

Version

minor bump: 1.55.0 → 1.56.0

Specs

  • Requirements: specs/feature-add-clean-html-to-markdown-conversion-for-agentic-scraping/requirements.md
  • Design: specs/feature-add-clean-html-to-markdown-conversion-for-agentic-scraping/design.md
  • Tasks: specs/feature-add-clean-html-to-markdown-conversion-for-agentic-scraping/tasks.md

Closes #269

@rnunley-nmg rnunley-nmg linked an issue Apr 27, 2026 that may be closed by this pull request
@rnunley-nmg rnunley-nmg added enhancement New feature or request automatable Suitable for automated SDLC processing labels Apr 27, 2026
@rnunley-nmg
rnunley-nmg merged commit 267f52c into main Apr 27, 2026
1 check passed
@rnunley-nmg
rnunley-nmg deleted the 269-add-clean-html-to-markdown-conversion-for-agentic-scraping branch April 27, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automatable Suitable for automated SDLC processing enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add clean HTML-to-Markdown conversion for agentic scraping

1 participant