I'm not sure if this says more about the concise power of or the simplicity of markup.

@chambln Reminds me of the conciseness of which without comments is pretty much a write-only language. .

The code - if annotated - could make a nice tutorial.

@chambln generating html from gemtext with sex is similarly easy

s/&/\&amp;/g s/</\&lt;/g s/>/\&gt;/g /```/,/```/s,^(.*)$,<code>\1</code>,g s,^---+$,<hr />,g s,^# (.+)$,<a role=heading aria-level=1># \1</a>,g s,^## (.+)$,<a role=heading aria-level=2>## \1</a>,g s,^### (.+)$,<a role=heading aria-level=3>### \1</a>,g s,^=&gt; https:\/\/youtu\.be\/([^ ]+?)$,<iframe frameborder=0 src="https://notyoutube.org/embed/\1"></iframe>,g s,^=&gt; https:\/\/youtu\.be\/([^ ]+?) (.+)$,<iframe frameborder=0 src="https://notyoutube.org/embed/\1" title="\2"></iframe>,g s,^=&gt; https:\/\/youtube\.com\/watch\?v=([^ ]+?)$,<iframe frameborder=0 src="https://notyoutube.org/embed/\1"></iframe>,g s,^=&gt; https:\/\/youtube\.com\/watch\?v=([^ ]+?) (.+)$,<iframe frameborder=0 src="https://notyoutube.org/embed/\1" title="\2"></iframe>,g s,^=&gt; https:\/\/www\.youtube\.com\/watch\?v=([^ ]+?)$,<iframe frameborder=0 src="https://notyoutube.org/embed/\1"></iframe>,g s,^=&gt; https:\/\/www\.youtube\.com\/watch\?v=([^ ]+?) (.+)$,<iframe frameborder=0 src="https://notyoutube.org/embed/\1" title="\2"></iframe>,g s,^=&gt; ([^ ]+?\.)(gif|jpe?g|png|svg) (.+)$,<img src="\1\2" alt="\3">,g s,^=&gt; ([^ ]+?\.)(gif|jpe?g|png|svg)$,<img src="\1\2">,g s,^=&gt; ([^ ]+?\.)(mp4|webm) (.+)$,<video src="\1\2" alt="\3">,g s,^=&gt; ([^ ]+?\.)(mp4|webm)$,<video src="\1\2">,g s,^=&gt; ([^ ]+)$,<a role=link href="\1">=\&gt; \1</a>,g s,^=&gt; ([^ ]+?) (.+)$,<a role=link href="\1">=\&gt; \2</a>,g s,^&gt;(.+)$,<blockquote>\1</blockquote>,g

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!