Metadata-Version: 2.4
Name: md2pdf-cli
Version: 0.1.0
Summary: A command-line tool to convert Markdown files to PDF
Home-page: https://github.com/yourusername/md2pdf
Author: Your Name
Author-email: your.email@example.com
Project-URL: Bug Reports, https://github.com/yourusername/md2pdf/issues
Project-URL: Source, https://github.com/yourusername/md2pdf
Keywords: markdown pdf conversion cli
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Documentation
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
Classifier: Topic :: Text Processing :: Markup
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: markdown2
Requires-Dist: pdfkit
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Markdown to PDF Converter

A command-line tool to convert Markdown files to PDF using Python.

## Installation

```bash
pip install .    
pip install md2pdf-cli
```

## Usage
 
 need to install wkhtmltox from 

```
https://gitlink.org.cn/dnrops/my_tools/releases/download/0.0.1/wkhtmltox-0.12.6-1.mxe-cross-win64.7z
```


```
# Basic conversion
md2pdf input.md output.pdf

# With custom CSS
md2pdf input.md output.pdf --style style.css
```



Sample CSS

```css
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 2cm;
}
h1 { color: #2c3e50; }
h2 { color: #34495e; }
code {
    background-color: #f8f8f8;
    padding: 2px 4px;
    border-radius: 3px;
}
pre {
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}
```

```bash
md2pdf/
├── setup.py
├── README.md
└── md2pdf/
    ├── __init__.py
    └── cli.py
```
