improved org2gemini

This commit is contained in:
Yann Esposito (Yogsototh) 2021-05-02 11:26:51 +02:00
parent d168d0b28e
commit 23fc0738fc
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -12,6 +12,7 @@ dst="$2"
perl -pe 's#=> file:([^ ]*)#=> $1#g;' | \
perl -pe 's#\[\[(file:)?([^]]*)\]\]#=> $2#g;' | \
perl -pe 's#^\* *\n\n##' | \
perl -pe 's#^\s*[-\*\+\.]\s*$##' | \ # remove lines with a single special char
perl -pe 's#^\**[ ]*:.*:$##' | \
perl -pe 's#^\s[- ]*$#\n#;' > "$dst"