improved hacky gemini script

This commit is contained in:
Yann Esposito (Yogsototh) 2020-11-09 11:46:18 +01:00
parent 3d0522192c
commit 67112b0974
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -6,4 +6,5 @@ src="$1"
dst="$2"
./engine/org2gemini_step1.sh "$src" | \
perl -pe 's#\[\[([^]]*)\]\[([^]]*)\]\]#\n=> $1 $2#g;s#=> file:([^ ]*)\.org#=> $1.gmi#g;s#\[\[(file:)?([^]]*)\]\]#=> $2#g;s#^\* *##' > "$dst"
perl -pe 's#\[\[([^]]*)\]\[([^]]*)\]\]#\n=> $1 $2#g;s#=> file:([^ ]*)\.org#=> $1.gmi#g;s#\[\[(file:)?([^]]*)\]\]#=> $2#g;' | \
perl -pe 's#^\* *\n##' > "$dst"