Skip to content

feat: Add CLI interface and PDF export functionality#5

Open
Aaryyan777 wants to merge 1 commit into
vedantlavale:mainfrom
Aaryyan777:main
Open

feat: Add CLI interface and PDF export functionality#5
Aaryyan777 wants to merge 1 commit into
vedantlavale:mainfrom
Aaryyan777:main

Conversation

@Aaryyan777
Copy link
Copy Markdown

This PR introduces two new features to mdify:

1. New CLI Interface (src/cli.ts)

I built a Command Line Interface to allow using mdify directly from the terminal.

  • Interactive Mode: Prompts the user for a URL if none is provided.
  • Batch Processing: Support for converting multiple URLs via a file (--batch).
  • Clipboard Support: Option to auto-copy result to clipboard (--copy).
  • UI: Includes spinners, colorized outputs, and a custom ASCII logo.

2. PDF Export Support

I integrated html2pdf.js into the toolbar to allow users to download articles as PDFs.

  • Quality: configured for 4x scale rendering for sharp text.
  • Styling: Added CSS rules to prevent awkward page breaks inside code blocks and images.

3. Testing & CI

  • Added Vitest configuration and unit tests for the conversion logic.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 6, 2026

@Aaryyan777 is attempting to deploy a commit to the Vedant's projects Team on Vercel.

A member of the Team first needs to authorize it.

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