Pandoc is just amazing.
PKGBUILD
pkgver=0.3
pkgrel=1
pkgdesc="Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. It can read markdown and (subsets of) reStructuredText, HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, LaTeX, RTF, DocBook XML, and S5 HTML slide shows."
arch=('i686')
url="http://sophos.berkeley.edu/macfarlane/pandoc/index.html"
license=('GPL')
depends=('ghc')
makedepends=('make' 'sed')
source=("pandoc-${pkgver}.tar.gz")
md5sums=('08ea5da564b721bd3cd52eee316143a1')
build() {
cd ${startdir}/src/pandoc-${pkgver}/
make
PREFIX=${startdir}/pkg/usr/ make install
}
test.txt
% Skynare
This is a [link](http://www.google.com/).
This is latex $(f: X \rightarrow Y)$
Then,
$ markdown2pdf test.txt
Created test.pdf
I tried reST but wasn't successful.
So, pandoc seems to be the blog preprocessing thingy.
$ pandoc blog.txt | xclip
Then, paste to blogger. Yay!
No comments:
Post a Comment