💾 Archived View for idiomdrottning.org › geminih captured on 2024-05-12 at 15:37:04. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-12-28)
-=-=-=-=-=-=-
Geminih is a library for Chicken Scheme to turn gemtext into SXML.
It exports one procedure geminih, that can take a single string for the entire page, or a list of lines, or if given no argument reads from current-input-port.
That procedure returns a list of SXML tags that you can cons body or div on top of, or splice into a quasiquoted document.
Geminih also comes with a command-line utility for converting gemtext to HTML. The eponymous geminih command operates like a filter, reading gemtext on standard input and writing partial HTML to standard output. Analogous to Pandoc’s default HTML output, the HTML produced by the command-line tool isn’t suitable as a standalone document; it needs to be wrapped in additional tags to make it standalone.
For source code,
git clone https://idiomdrottning.org/geminih