andrerocco/Markdown to PDF
Convert Markdown documents and CSS into ready-to-share HTML and PDF files.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| files | Newline-separated glob patterns that match Markdown files to render. | no | **/*.md |
| exclude | Newline-separated glob patterns to exclude from the search. | no | — |
| output_dir | Directory (relative to the workspace) where rendered files will be written. | no | output |
| chrome_path | Absolute path to the Chrome/Chromium executable. Auto-detected when omitted. | no | — |
| global_css | Newline-separated glob patterns for CSS files that should be included with every document. | no | — |
| generate_html | Set to 'false' to skip writing HTML files and only emit PDFs. | no | false |
| fail_on_missing_css | Fail if no CSS files are found for a Markdown file (defaults to warning only). | no | false |
| disable_sandbox | Disable Chrome sandbox (recommended on Linux runners). | no | — |
| upload_artifact | Upload the generated files as a workflow artifact. | no | true |
| pdf_timeout_ms | Milliseconds to wait for Chrome to finish generating a PDF before timing out. | no | 20000 |
| extra_html_head | Raw HTML injected into the <head> of each generated document. | no | — |
| artifact_name | Name of the artifact to upload. | no | Markdown_PDFs_Converted |
Outputs
| name | description |
|---|---|
| count | Number of Markdown files that were rendered. |
| output_dir | Relative path to the directory containing generated files. |
| files | JSON array describing each rendered file (markdown, pdf, html, css). |