improved org2gemini
This commit is contained in:
parent
d168d0b28e
commit
23fc0738fc
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ dst="$2"
|
||||||
perl -pe 's#=> file:([^ ]*)#=> $1#g;' | \
|
perl -pe 's#=> file:([^ ]*)#=> $1#g;' | \
|
||||||
perl -pe 's#\[\[(file:)?([^]]*)\]\]#=> $2#g;' | \
|
perl -pe 's#\[\[(file:)?([^]]*)\]\]#=> $2#g;' | \
|
||||||
perl -pe 's#^\* *\n\n##' | \
|
perl -pe 's#^\* *\n\n##' | \
|
||||||
|
perl -pe 's#^\s*[-\*\+\.]\s*$##' | \ # remove lines with a single special char
|
||||||
perl -pe 's#^\**[ ]*:.*:$##' | \
|
perl -pe 's#^\**[ ]*:.*:$##' | \
|
||||||
perl -pe 's#^\s[- ]*$#\n#;' > "$dst"
|
perl -pe 's#^\s[- ]*$#\n#;' > "$dst"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue