🧩 API Reference
contextpack_md.api
convert_pdf_to_markdown(pdf_path)
Converts a PDF file to Markdown using marker-pdf.
Source code in src/contextpack_md/api.py
download_pdf(url, save_path)
Downloads a PDF file from a URL.
Source code in src/contextpack_md/api.py
options: show_root_heading: true
contextpack_md.scraper
extract_content(html, url)
Extracts readable markdown from HTML.
fetch_and_scrape(url, timeout=10)
Downloads and extracts content from a URL.
options: show_root_heading: true