Last active
May 29, 2023 06:43
-
-
Save probonopd/68c97814ffb70b627b457d62fbd2b9db to your computer and use it in GitHub Desktop.
epub2md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pandoc manual.epub -o manual.md --wrap=none | |
sed -i -e 's/<[^>]*>//g' manual.md | |
sed -i -e 's/\\//g' manual.md | |
sed -i -e 's/{[^}]*}//g' manual.md | |
sed -i -e 's/------------------------------------------------------------------------//g' manual.md | |
sed -i -e 's/\n\n\n/\n\n/g' manual.md | |
sed -i -e 's/\n\n\n/\n\n/g' manual.md | |
sed -i -e 's/\n\n\n/\n\n/g' manual.md | |
mogrify -brightness-contrast 0,-20 -shave 2x2 -bordercolor black -border 2 some.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment