1
0
Fork
You've already forked hdoc
0
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%
Find a file
2026年06月27日 22:05:48 +05:30
fonts added README and UNLICENSE 2026年06月27日 13:05:13 +05:30
hvf overleaf style web editor :D 2026年06月25日 20:10:01 +05:30
test-files web, CLI: handle empty hdoc 2026年06月27日 20:53:05 +05:30
web/hdoc-online web, CLI: handle empty hdoc 2026年06月27日 20:53:05 +05:30
common.odin common: skip empty lines in hdoc 2026年06月27日 20:45:44 +05:30
hdoc.md removed PNG as an output option 2026年06月23日 23:19:12 +05:30
justfile overleaf style web editor :D 2026年06月25日 20:10:01 +05:30
main.odin web, CLI: handle empty hdoc 2026年06月27日 20:53:05 +05:30
main_wasm.odin web: multi page output 2026年06月27日 19:28:11 +05:30
README.md Update README.md 2026年06月27日 22:05:48 +05:30
UNLICENSE added README and UNLICENSE 2026年06月27日 13:05:13 +05:30

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!