cohost/html/minvn.tsx

47 lines
975 B
TypeScript
Raw Normal View History

2024-02-20 22:04:25 -05:00
// yeahh a directed acyclic graph should be good
// where we just dupe
// e.g.
// a -+-> b
// | |
// | v
// \-> c -> d
// compiles to
// a -+-> b -> c -> d
// |
// \-> c -> d
// inefficient but tractable
// maybe restrict height and width to lh and ch
const example = `
; TODO: contrast isn't great...
fg red
bg rgb(20 15 15)
font "courier-std", courier, monospace
font-size 1.1rem
width 6in
height 12in
# welcome
; only an image link? how incredibly minimalist
- https://image.link
- alt text for that image
; by only allowing connections that have not been declared yet, we should be
; able to avoid cycles
| welcome to the game this is dialogue
| when you use multiple |s, the text is combined into one line
| so it can be pretty
| it's up to you to make sizing work
> good bye
> how are you
; order independent here
# good bye
| that is so rude... i'm sad.
- sad image link
- a sad guy
; notably, no connections
# how are you
>
`.trim();