Comment by ๐Ÿš€ mbays

Re: "Gemini to HTML generator"

In: s/Gemini

Here's one simple implementation of gemtext -> HTML; no CSS, but that should be easy to hack in.

โ€” gemini.thegonz.net/gmi2html.sed

๐Ÿš€ mbays

2025-05-05 ยท 1 year ago

7 Later Comments โ†“

๐Ÿ‘ zeerooth ยท 2025-05-05 at 13:24:

There is also

โ€” https://codeberg.org/snonux/gemtexter

๐Ÿ‘ฝ TKurtBond ยท 2025-05-06 at 01:55:

I use the static site generation feature of Lichen, a CMS written in Forth, to generate the HTML version of consp.org.

Lichen is at https://codeberg.org/stringbone/lichen/src/branch/master

๐Ÿ‘ป mediocregopher [...] ยท 2025-05-06 at 06:40:

If you happen to be using Caddy as your webserver, I wrote a plugin for it which can do what you want. There's an example of how to use it in the repo as well.

โ€” https://dev.mediocregopher.com/mediocre-caddy-plugins/#httphandlersgemtext

๐ŸŒฒ byte [OP] ยท 2025-05-07 at 23:01:

@mediocregopher oh wow that's amazing! i should try that :3

๐Ÿ‘ป ps ยท 2025-05-08 at 04:12:

Thought, I should use Markdown for preprocessing and then convert it separately to Gemtext, HTML, and any other format. I made a mistake when translated my existing documents from Markdown to Gemtext, just imho.

๐Ÿ‘ป mediocregopher [...] ยท 2025-05-08 at 07:16:

@byte feel free to email me if you have any questions about using it :)

๐Ÿš€ clseibold [๐Ÿ›‚] ยท 2025-05-08 at 10:10:

@ps That seems like a good way to do it. Going from MD to another format will allow you to use more features that are HTML that get discarded in the gemtext. I wonder if anybody has done anything with AsciiDoc to HTML and Gemtext?

Original Post

๐ŸŒ’ s/Gemini

๐ŸŒฒ byte:

Gemini to HTML generator โ€” hi, i was wondering if there are any reliable projects that i could use to convert my capsule with gemlogs into html with css automatically? i got a physical server and will be transfering my stuff onto it, so i decided to give a common web a try as well. as web is inferior to gemini and hand-editing it absolutely sucks, i'd prefer to still write my posts in gemtext for my capsule, and then pass them through some soft that either converts them once or acts as a proxy...

๐Ÿ’ฌ 16 comments ยท 2025-05-04 ยท 1 year ago