
Markdown To Pdf
This converts markdown files to PDFs using mistune for parsing and reportlab for rendering, no external tools needed. You get headings, tables, code blocks, lists, and basic formatting. The output defaults to the same directory as your input file with a PDF extension, which is the sensible behavior. It returns structured JSON with absolute paths and timestamps, clearly designed to play nice with other automation skills. The supported markdown subset is reasonable but not exhaustive, so don't expect every GitHub-flavored feature. Good for generating reports or documentation from markdown without wrestling with Pandoc or wkhtmltopdf installations.
- GitHub stars
- 248
- last updated
- Jun 11, 2026
Install
$ npx -y skills add staskh/trading_skills --skill markdown-to-pdf --agent claude-codeInstalls into .claude/skills of the current project.
Files
Markdown to PDF Converter
Converts a markdown file to a professionally formatted PDF. Pure Python — no system tools required.
Dependencies
Requires two Python packages (already in pyproject.toml):
mistune>=3.2
reportlab>=4.0
Install with: uv sync (or pip install mistune reportlab)
Instructions
uv run python .claude/skills/markdown-to-pdf/scripts/markdown_to_pdf.py <input.md> [output.pdf]
input.md— path to the markdown file (required)output.pdf— output path (optional; defaults to same directory and basename as input)
Output
The script returns JSON with:
success—trueorfalseinput— resolved absolute path of the input fileoutput— resolved absolute path of the generated PDFerror— error message ifsuccessisfalsegenerated_at— NY timezone timestampdata_delay— always"real-time"
After conversion, tell the user the output PDF path.
Examples
# Convert sandbox/report.md → sandbox/report.pdf (default output)
uv run python .claude/skills/markdown-to-pdf/scripts/markdown_to_pdf.py sandbox/report.md
Sponsors
Details
- Repository
- github.com/staskh/trading_skills
- Categories
- Office & Documents, Finance & Trading
- License
- MIT
- First seen
- Jun 11, 2026
More from staskh/trading_skills
All 28- Price History
- Scanner Bullish
- Scanner Pmcc
- Spread Analysis
- Whale Hunting
- Technical Analysis598
- News Sentiment246
- Fundamentals182
- Stock Quote131
- Greeks128
- Report Stock117
- Option Chain111
- Risk Assessment105
- Earnings Calendar
- Ib Account
- Ib Collar
- Ib Create Consolidated Report
- Ib Find Short Roll
- Ib Option Chain
- Ib Pmcc Advisor
- Ib Portfolio
- Ib Portfolio Action Report
- Ib Report Delta Adjusted Notional Exposure
- Ib Stop Loss