Markdown To PNG
markdown-to-png is a Python package designed to convert Markdown files into beautifully styled PNG images. Whether you want to create visually appealing graphics from text or simply share Markdown content in an image format, this tool has you covered.
This package is designed to be simple to use yet flexible enough to accommodate future enhancements and features.
Features
- Convert Markdown files to PNG images effortlessly.
- Support for custom CSS styling to match your desired visual design.
- Lightweight and easy to integrate into your projects.
Installation
You can install the package using pip (once published to PyPI):
pip install markdown-to-png
If you're cloning the repository for development:
git clone https://github.com/richiepagard/markdown-to-png.git
cd markdown-to-png
pip install -e .
Usage
Here’s a basic example of how to use the package:
from markdown_to_png import convertor
# convert a markdown file to png
convertor.markdown_to_png("path/to/markdown_file.md", "path/to/output.png")
Optional Parameters
- CSS File: Customize the style by specifying a custom CSS file.
convertor.markdown_to_png("path/to/markdown_file.md", "path/to/output.png", css_path="path/to/custom_style.css")
Future Plans
This project is a work in progress, and more features are planned for future versions:
- Add support for multiple output formats (e.g., PDF, JPEG).
- Command-line interface for easier use.
- Enhanced error handling and logging.
- Predefined themes for styling.
- Integration with Markdown extensions like tables and footnotes.
Stay tuned for updates!
Contributing
Contributions are welcome! If you have ideas, suggestions, or bug reports, please feel free to open an issue or submit a pull request on GitHub.
License
This project is licensed under the MIT License. You are free to use, modify, and distribute this package as per the terms of the license.
Contact
If you have any questions or feedback, feel free to reach out:
- GitHub: richiepagard (Richie)
- Email: richiepagard@gmail.com
Metadata
Release files for markdown-to-png 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| markdown_to_png-1.1.5.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| markdown_to_png-1.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / markdown_to_png-1.1.5.tar.gz
| Download URL | markdown_to_png-1.1.5.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f41eba49f80230751ec658152e02e027f5b1c605d187993275e5b288d449416b
|
|
BLAKE2b-256 checksum How to use checksums |
06fc28dc050e2093b8bc122978c6c4a4f7b606f7df7c4eccaca798be10cc6580
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / markdown_to_png-1.1.5-py3-none-any.whl
| Download URL | markdown_to_png-1.1.5-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ff4ab760098f0f1c4404488dcb4da25deade986f48ec336200e55d86b66dc49
|
|
BLAKE2b-256 checksum How to use checksums |
ed70fd2e7d4e34aa05bec74b4b0c548e4e4eaa5639069eb8b74a339e14e507f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|