Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch markdown from remote #11

Open
theiskaa opened this issue Nov 15, 2024 · 0 comments
Open

Fetch markdown from remote #11

theiskaa opened this issue Nov 15, 2024 · 0 comments
Labels
feature New feature or request

Comments

@theiskaa
Copy link
Owner

Current Functionality

The application currently supports converting Markdown to PDF using two input methods:

  1. File Path
    • -p or --path: Specify the local file path to the Markdown file for conversion.
  2. Direct String
    • -s or --string: Provide Markdown content directly as a string.

Proposed Feature:

Introduce a new parameter, -rp or --remote-path, to allow fetching Markdown content from a remote URL. The tool would download the file, process it into a string, and then execute the library to generate the PDF.

Example Usage

markdown2pdf --remote-path https://raw.githubusercontent.com/theiskaa/markdown2pdf/refs/heads/main/README.md

In this example, the tool would:

  1. Fetch the README.md file from the provided URL.
  2. Read its content into a string.
  3. Convert the Markdown content into a PDF.
@theiskaa theiskaa added the feature New feature or request label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant