Updates to markdown rendering

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

  1. Blocks of text enclosed in ``` are pre-formatted.

  1. 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 and 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:

=> Ascii Art Tutorial | Flask Mega Tutorial

Proxy Information
Original URL
gemini://mozz.us/journal/2020-01-15_http_proxy_markdown.gmi
Status Code
Success (20)
Meta
text/gemini; lang=en
Capsule Response Time
1427.343682 milliseconds
Gemini-to-HTML Time
0.465321 milliseconds

This content has been proxied by September (ba2dc).