Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Require pandoc >= 1.10.

API changes for pandoc.  Thanks to adityam for the patch.
  • Loading branch information...
commit ba2db48878d07d9be8ff44ce8d407d259051775d 1 parent 1cfb5e9
@jgm authored
Showing with 12 additions and 11 deletions.
  1. +9 −9 Yst/Render.hs
  2. +3 −2 yst.cabal
View
18 Yst/Render.hs
@@ -138,17 +138,17 @@ renderPage site page = do
converterForFormat :: Format -> String -> String
converterForFormat f =
- let reader = readMarkdown defaultParserState{stateSmart = True}
+ let reader = readMarkdown def{readerSmart = True}
in case f of
- HtmlFormat -> writeHtmlString defaultWriterOptions . reader
- LaTeXFormat -> writeLaTeX defaultWriterOptions . reader
+ HtmlFormat -> writeHtmlString def . reader
+ LaTeXFormat -> writeLaTeX def . reader
PlainFormat -> id
- ConTeXtFormat -> writeConTeXt defaultWriterOptions . reader
- ManFormat -> writeMan defaultWriterOptions . reader
- RTFFormat -> writeRTF defaultWriterOptions . reader
- DocBookFormat -> writeDocbook defaultWriterOptions . reader
- TexinfoFormat -> writeTexinfo defaultWriterOptions . reader
- OpenDocumentFormat -> writeOpenDocument defaultWriterOptions . reader
+ ConTeXtFormat -> writeConTeXt def . reader
+ ManFormat -> writeMan def . reader
+ RTFFormat -> writeRTF def . reader
+ DocBookFormat -> writeDocbook def . reader
+ TexinfoFormat -> writeTexinfo def . reader
+ OpenDocumentFormat -> writeOpenDocument def . reader
getTemplate :: Stringable a => String -> STGroup a -> IO (StringTemplate a)
getTemplate templateName templateGroup = do
View
5 yst.cabal
@@ -1,5 +1,5 @@
name: yst
-version: 0.3.0.1
+version: 0.3.1
Tested-With: GHC == 7.4.1
Cabal-version: >= 1.8
build-type: Simple
@@ -58,7 +58,8 @@ Executable yst
HStringTemplate >= 0.6.1 && < 0.6.9 || > 0.6.11 && < 0.7,
HsSyck, csv,
filepath, containers, directory, utf8-string, time,
- old-locale, old-time, parsec, xhtml, pandoc, bytestring,
+ old-locale, old-time, parsec, xhtml,
+ pandoc >= 1.10 && < 1.11, bytestring,
split, HDBC, HDBC-sqlite3
extensions: CPP
if impl(ghc >= 6.12)
Please sign in to comment.
Something went wrong with that request. Please try again.