💾 Archived View for mozz.us › journal › 2020-01-15_http_proxy_markdown.gmi captured on 2023-11-04 at 11:41:29. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2020-09-24)
-=-=-=-=-=-=-
Published 2020-01-15
There has been a new markdown format for gemini files proposed by @solderpunk in the mailing list:
https://lists.orbitalfox.eu/archives/gemini/2020/000304.html
The rules are:
1. Normal blocks of text are reflowed
2. Blocks of text enclosed in ``` are pre-formatted.
3. No links inside of pre-formatted blocks.
I decided to try this new format out by implementing it in my gemini->https proxy. It only took me ~20 minutes to tweak my rendering code. Of course, targeting HTML makes this a lot easier because I can use <pre> and <p> tags as-is and not need to wrap the text myself.
The new rendering can be toggled with the [markdown] link at the top of the proxy page, or by appending "?reflow=2" to the URL (the proxy URL, not the gemini:// URL)
Gemini->HTTPS proxy in "markdown" mode
Here are some example gemini documents that I hastily threw together to show off the new formatting: