Created
October 19, 2012 04:00
-
-
Save gAmUssA/3916150 to your computer and use it in GitHub Desktop.
Markdown and Asciidoc commands
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
# markdown to asciidoc | |
pandoc -f markdown -t asciidoc -S | |
# html generation from asciidoc | |
asciidoc -b html5 -a icons -a iconsdir=`brew --prefix asciidoc`/etc/asciidoc/images/icons -a theme=flask -a data-uri -a toc2 book.asciidoc | |
# pdf generation from asciidoc | |
# prerequisite: brew install fop | |
# TODO: images doesn't embed | |
a2x -fpdf -dbook --fop --icons --icons-dir=iconsdir=`brew --prefix asciidoc`/etc/asciidoc/images/icons book.asciidoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment