Publish (node)
🌐 Generate a html or pdf document from a markdown file using node.js
Status | 🟢 ACTIVE 🔒 PRIVATE |
---|---|
Created | October 9, 2024 |
Language | Nunjucks |
Topics | clean-css commander gray-matter highlightjs highlightjs-cdn-assets html markdown markdown-it markdown-it-anchor markdown-it-checkbox markdown-it-highlightjs markdown-it-mark markdown-it-table-of-contents nodejs nunjucks pdf pupeeter puppeteer |
This is a project that makes possible to publish web documents based on templates.
The documents used markdown format and the templates are Nunjucks files, using HTML and CSS.
I first made this project to create official documents for my company, then I used it for my teaching, using templates I’ve created that use and respect the visual design of the schools.
It is also useful to give reports for schools or clients.
There are two export modes:
- HTML (web mode)
- PDF (document mode)
Resources likes styles, images... are directly integrated into the HTML file. It allows me to have a single HTML file.
It is easy to publish markdown documents and put them online.