Commit graph

13 commits

Author SHA1 Message Date
Noah Hellman
c4ecd0c677 Revert "lib: add Render::render_{event, prologue, epilogue}"
This reverts commit e8503e28fd.

This imposed too many limitations on the renderer implementation. E.g.
making it impossible to store `Event<'s>`'s in the renderer struct.

Revert back to having the renderer struct separate from the implementor
of the Render trait. The implementor may instead create a renderer
struct without any restrictions.
2023-04-25 21:03:18 +02:00
Noah Hellman
e8503e28fd lib: add Render::render_{event, prologue, epilogue}
derive push/write automatically from these
2023-04-05 21:17:33 +02:00
kmaasrud
d7f2c0a819 implement Render trait for html::Renderer 2023-02-10 09:46:18 +01:00
kmaasrud
896c7004c4 add input and output args to CLI
This commit also adds a help text, accessible with the `--help` flag, as
well as a version text, available by using `--version`. My hope is that
this commit will make the jotdown CLI a bit friendlier to use.
2023-02-08 22:43:07 +01:00
Noah Hellman
7a26476315 fixup! wip djot -> html 2023-02-05 20:36:49 +01:00
Noah Hellman
8d676e1431 parse inline attrs 2023-02-05 20:36:40 +01:00
Noah Hellman
564256f1b8 print tree 2023-02-05 20:36:39 +01:00
Noah Hellman
8bdb598e6c fixup! parse block elements 2023-02-05 20:36:39 +01:00
Noah Hellman
e080b16bf7 fixup! parse block elements 2023-02-05 20:36:39 +01:00
Noah Hellman
8ada539709 wip djot -> html 2023-02-05 20:36:39 +01:00
Noah Hellman
f3e6db018e wip block+inline 2023-02-05 20:36:39 +01:00
Noah Hellman
fe45519ca9 wip 2023-02-05 20:36:39 +01:00
Noah Hellman
40a612df95 parse block elements 2023-02-05 20:36:26 +01:00