Metadata-Version: 2.4
Name: mermaidmd2pdf
Version: 0.1.0
Summary: Convert Markdown files with Mermaid diagrams to PDF
Project-URL: Homepage, https://github.com/yourusername/MermaidMD2PDF
Project-URL: Documentation, https://github.com/yourusername/MermaidMD2PDF#readme
Project-URL: Repository, https://github.com/yourusername/MermaidMD2PDF.git
Project-URL: Issues, https://github.com/yourusername/MermaidMD2PDF/issues
Author-email: Chad Walters <chad@example.com>
License-Expression: MIT
License-File: LICENSE
Keywords: converter,diagrams,documentation,markdown,mermaid,pdf
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
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 :: Software Development :: Documentation
Classifier: Topic :: Text Processing :: Markup :: Markdown
Requires-Python: >=3.8
Requires-Dist: click>=8.0.0
Requires-Dist: markdown>=3.5.0
Requires-Dist: packaging>=23.2
Requires-Dist: weasyprint>=60.2
Provides-Extra: dev
Requires-Dist: black>=24.0.0; extra == 'dev'
Requires-Dist: isort>=5.13.0; extra == 'dev'
Requires-Dist: mypy>=1.8.0; extra == 'dev'
Requires-Dist: psutil>=5.9.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: ruff>=0.2.0; extra == 'dev'
Description-Content-Type: text/markdown

# MermaidMD2PDF

A powerful command-line tool that converts Markdown documents containing Mermaid diagrams into beautifully formatted PDFs.

## Features

- Convert Markdown files with Mermaid diagrams to PDF
- Support for multiple Mermaid diagram types
- High-quality PDF output with embedded diagrams
- Command-line interface for easy integration
- Comprehensive error handling and validation

## Prerequisites

- Python 3.8 or higher
- Pandoc (for PDF generation)
- Mermaid CLI (for diagram rendering)

### Installing Prerequisites

#### macOS
```bash
# Install Pandoc
brew install pandoc

# Install Mermaid CLI
npm install -g @mermaid-js/mermaid-cli
```

#### Linux
```bash
# Install Pandoc
sudo apt-get install pandoc

# Install Mermaid CLI
npm install -g @mermaid-js/mermaid-cli
```

## Installation

1. Clone the repository:
```bash
git clone https://github.com/yourusername/MermaidMD2PDF.git
cd MermaidMD2PDF
```

2. Create and activate a virtual environment:
```bash
python -m venv .venv
source .venv/bin/activate  # On Linux/macOS
# or
.venv\Scripts\activate  # On Windows
```

3. Install the package:
```bash
pip install -e .
```

## Usage

Basic usage:
```bash
mermaidmd2pdf input.md output.pdf
```

### Command Line Options

- `--title TEXT`: Set the PDF title
- `--help`: Show help message and exit
- `--version`: Show version and exit

### Example Markdown File

```markdown
# My Document

This is a sample document with a Mermaid diagram.

```mermaid
graph TD
    A[Start] --> B{Is it?}
    B -- Yes --> C[OK]
    B -- No --> D[Cancel]
```

## Documentation

- [User Guide](docs/user-guide/README.md)
- [API Reference](docs/api-reference/README.md)
- [Examples](docs/examples/README.md)

## Development

### Running Tests

```bash
pytest
```

### Code Style

This project uses:
- Black for code formatting
- isort for import sorting
- mypy for type checking
- ruff for linting

Run all checks:
```bash
pre-commit run --all-files
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
