a simple, intentionally limited document format for PDFs and presentations
- JavaScript 70.5%
- Odin 20.4%
- CSS 5%
- Svelte 3.5%
- HTML 0.3%
- Other 0.3%
| fonts | added README and UNLICENSE | |
| hvf | overleaf style web editor :D | |
| test-files | web, CLI: handle empty hdoc | |
| web/hdoc-online | web, CLI: handle empty hdoc | |
| common.odin | common: skip empty lines in hdoc | |
| hdoc.md | removed PNG as an output option | |
| justfile | overleaf style web editor :D | |
| main.odin | web, CLI: handle empty hdoc | |
| main_wasm.odin | web: multi page output | |
| README.md | Update README.md | |
| UNLICENSE | added README and UNLICENSE | |
HDoc
a simple, intentionally limited document format for PDFs and presentations that uses HVF fonts. this repo includes both a CLI that exports to SVG and typst documents and an Overleaf-inspired web app to edit your hdoc files on the web.
Example
.h1 HDoc example
.h2 subtitles ftw!
.section Split chunks
.bullet for all cases and casings
plain sentences don't require anything.
do check out hdoc.md as well for more directives!
Building
Prerequisites: Odin and optionally Deno for the web app
if you've got just installed, use it along with the justfile
otherwise, just copy the commands from that (though, since this is just a simple Odin program, you can't just run odin run .)
Usage
CLI
Usage:
hdoc-debug input font [-output] [-seed] [-typewriter] [-typst]
Flags:
-input:<^File>, required | Input Hdoc file.
-font:<^File>, required | Font file.
|
-output:<string> | Output SVG stem (e.g. 'out' produces out-1.svg, out-2.svg...).
-seed:<u64> | Seed to add a typewriter effect to the document. 0 for a random seed.
-typewriter | Add a typewriter effect.
-typst | Write a .typ file to embed SVGs as PDF
Web App
just use deno run dev lol
UNLICENSE
everything here, including the fonts, come under Unlicense. Go nuts and have fun!