Skip to content

Instantly share code, notes, and snippets.

@gAmUssA
Created October 19, 2012 04:00
Show Gist options
  • Save gAmUssA/3916150 to your computer and use it in GitHub Desktop.
Save gAmUssA/3916150 to your computer and use it in GitHub Desktop.
Markdown and Asciidoc commands
# 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