💾 Archived View for station.martinrue.com › jynx › ccb350ab319b48eb9ab08bccd7e29eea captured on 2023-01-29 at 21:33:31. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

➡️ Next capture (2023-03-20)

-=-=-=-=-=-=-

👽 jynx

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

8 months ago

Links

[1] gemini://gemini.conman.org/boston.gemini

Actions

👋 Join Station

2 Replies

👽 bencollversphone

"| bash |" LOL, that's a wide open security hole. · 8 months ago

👽 jynx

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 · 8 months ago