Bookshelf 0.4 → 0.5
raw patch · 2 files changed
+3/−2 lines, 2 files
Files
- Bookshelf.cabal +1/−1
- Generate.hs +2/−1
Bookshelf.cabal view
@@ -1,5 +1,5 @@ name: Bookshelf-version: 0.4+version: 0.5 synopsis: A simple document organizer with some wiki functionality description: A simple document organizer with some wiki functionality category: Text
Generate.hs view
@@ -34,6 +34,7 @@ import Text.CSL.Pandoc (processCites) import Text.Pandoc+import Text.Pandoc.Error import Types @@ -236,7 +237,7 @@ markdownToHtml :: ShelfInfo -> String -> (String, [FilePath], MetaInfo) markdownToHtml shelfInfo markdown = (html,links,meta) where- pandoc = readMarkdown def{readerSmart=True} markdown+ pandoc = handleError $ readMarkdown def{readerSmart=True} markdown links = queryWith localLink pandoc thisMeta = extractMeta pandoc mainMeta = parseMainMeta pandoc