A powerful and flexible Markdown to PDF converter built by the BLEU community.
This project is part of the BLEU organization's "Learn by Doing" initiative. It's a community-driven tool that converts Markdown files to beautifully formatted PDFs, making it easy to create professional documentation, reports, and more.
- Convert Markdown files to PDF
- Customizable styling options
- Support for GitHub Flavored Markdown
- Cross-platform compatibility
- Easy to use CLI and API
- Bun (latest version)
# For macOS, Linux, and WSL
curl -fsSL https://bun.sh/install | bash
# For Windows (via WSL)
# First install WSL if you haven't already:
wsl --install
# Then install Bun inside WSL using the command above
Verify the installation:
bun --version
bun install @bleu/md-to-pdf
import { mdToPdf } from '@bleu/md-to-pdf';
// Convert a markdown string to PDF
mdToPdf.convert('# Hello World')
.then(pdf => {
// Handle PDF buffer
});
// Convert a markdown file to PDF
mdToPdf.convertFile('input.md', 'output.pdf')
.then(() => {
console.log('Conversion complete!');
});
We welcome contributions from developers of all skill levels! This project is part of BLEU's mission to learn by doing, and we believe that contributing to open source is one of the best ways to learn and grow as a developer.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
# Clone the repository
git clone https://github.com/BLEU/md-to-pdf.git
# Install dependencies
bun install
# Run tests
bun test
# Build the project
bun run build
- Write clear, descriptive commit messages
- Add tests for new features
- Update documentation as needed
- Follow the existing code style
- Be kind and respectful to others
Please read our Code of Conduct before contributing. We are committed to providing a welcoming and inclusive environment for all contributors.
This project is licensed under the MIT License - see the LICENSE file for details.
- BLEU Community
- All our contributors
- The open source community
- GitHub Organization: BLEU
- Join our community: BLEU Community
Made with ❤️ by the BLEU Community