Skip to content

Add iOS demo app, CI, smoke tests, fixtures, and HTML converter cleanup - #6

Merged
etherlink-intern merged 2 commits into
mainfrom
codex/review-repository-475sus
May 31, 2026
Merged

etherlink-intern merged 2 commits into
mainfrom
codex/review-repository-475sus

Conversation

@etherlink-intern

Copy link
Copy Markdown
Owner

Motivation

  • Provide a minimal SwiftUI iOS demo that exercises the SwiftMarkItDown package and make CI validate the package plus the demo.
  • Add repeatable CLI smoke tests and fixtures to validate end-to-end conversions for common formats.
  • Improve HTML-to-Markdown output by removing head content and normalizing whitespace to produce cleaner Markdown.

Description

  • Added an iOS demo app under App/SwiftMarkItDownApp/ with ContentView.swift and SwiftMarkItDownApp.swift plus an Xcode project and scheme to build the demo.
  • Added a GitHub Actions workflow /.github/workflows/ci.yml that runs swift test, the CLI smoke script, and an xcodebuild of the iOS demo on macOS runners.
  • Added Scripts/smoke-test.sh and test fixtures in Tests/Fixtures/ with expected outputs in Tests/Expected/ and wired the smoke tests into CI.
  • Updated Sources/SwiftMarkItDown/Converters/HTMLConverter.swift to strip <head> sections and trim per-line whitespace to avoid leaking titles/styles/scripts into Markdown.
  • Updated unit tests and README.md to reflect the demo app, new smoke tests, and the adjusted HTML handling.

Testing

  • Ran the unit test suite with swift test and the core conversion tests in Tests/SwiftMarkItDownTests, which succeeded.
  • Executed the CLI smoke tests via Scripts/smoke-test.sh against fixtures in Tests/Fixtures/, which succeeded.
  • Built the iOS demo app with xcodebuild using the SwiftMarkItDownApp scheme for a simulator destination, which completed successfully.

Codex Task

@etherlink-intern
etherlink-intern marked this pull request as ready for review May 31, 2026 18:00
@etherlink-intern
etherlink-intern merged commit 91ff7d4 into main May 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant