https://github.com/datagrove/markdown_to_pdf
https://github.com/datagrove/markdown_to_pdf
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/datagrove/markdown_to_pdf
- Owner: datagrove
- License: mit
- Created: 2022-09-01T05:38:21.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T17:32:52.000Z (over 3 years ago)
- Last Synced: 2025-04-02T16:50:34.277Z (about 1 year ago)
- Language: Dart
- Size: 217 KB
- Stars: 3
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Markdown-To-PDF
Dart package for transforming markdown files to HTML and HTML to PDF.
## Run and Test
open test/test.dart, click debug.
fix code
repeat!
## Project Goal:
A package to convert markdown to html and the resulting html to PDF.
Leverage the following packages:
- [markdown](https://pub.dev/packages/markdown)
- [html](https://pub.dev/packages/html)
- [pdf](https://pub.dev/packages/pdf)
### Requirements:
- Pure Dart
- Works on all dart platforms including all flutter platforms
- Accepts box constraint
- Returns amount of html rendered such that rendering can resume on a subsequent page
- Follow standards and requirements for publication on pub.dev
- Support enough html to support basic markdown
- Use the dart markdown extension to extend markdown
### Additional Features:
- Support for additional html embedded into markdown
- Reference the [flutter_html](https://pub.dev/packages/flutter_html) as an example of a package that implements growing and extendible subset of html
- Be able to create a PDF of marp-style slide decks
- [Marp Markdown](https://marp.app)
- We should have our own plugin system for html2pdf postprocessor. Maybe based on
{
// json
}
### Additional References:
- [Python Solution](https://weasyprint.org)