💾 Archived View for station.martinrue.com › jynx › ccb350ab319b48eb9ab08bccd7e29eea captured on 2022-07-16 at 19:25:49. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
gmni -j once gemini://gemini.conman.org/boston.gemini 2>/dev/null | sed 's/^=> /gemini:\/\/gemini.conman.org/g;s/ .*//g' | sed 's/^gem/gmni -j once gem/g;s/$/ 2>\/dev\/null/g' | bash | awk '{if($1=="#"){$1="<h1>";$0=$0"</h1>"}else if($1=="*"){$1="<li>";$0=$0"</li>"}else if($1=="=>"){$1="<a href=\""$2"\">";$0=$0"</a>"}else{$1="<p>";$0=$0"</p>"}{print$0}}' > t.html && pandoc -o t.epub t.html
1 month ago
[1] gemini://gemini.conman.org/boston.gemini
"| bash |" LOL, that's a wide open security hole. · 1 month ago
Proof of concept gemini to epub as a one liner using conman.org as a test. Works. awk code to convert gmi to html stolen from https://codegolf.stackexchange.com/questions/220044/convert-gemtext-to-html · 1 month ago