Commit 7e178325 authored by Henrik Tramberend's avatar Henrik Tramberend
Browse files

Switch to pandoc 2.4 and use a custom Markdown writer

parent bca00fe2
......@@ -77,6 +77,7 @@ dependencies:
- snap-core
- snap-server
- split
- tagsoup
- template-haskell
- temporary
- text
......
This diff is collapsed.
......@@ -11,6 +11,7 @@ module Meta
import Common
import Exception
import Markdown
import Control.Arrow
import Control.Exception
......@@ -45,7 +46,7 @@ toMustacheMeta (MetaBlocks blocks) =
writeMarkdownText :: WriterOptions -> Pandoc -> T.Text
writeMarkdownText options pandoc =
case runPure $ writeMarkdown options pandoc of
case runPure $ Markdown.writeMarkdown options pandoc of
Right text -> text
Left err -> throw $ PandocException $ show err
......
......@@ -10,6 +10,7 @@ module Sketch
import Common
import Resources
import Slide
import Markdown
import Control.Monad
import qualified Data.Text.IO as T
......@@ -51,7 +52,7 @@ writeToMarkdownFile filepath pandoc
, writerColumns = 999
, writerSetextHeaders = False
}
runIO (writeMarkdown options pandoc) >>= handleError >>= T.writeFile filepath
runIO (Markdown.writeMarkdown options pandoc) >>= handleError >>= T.writeFile filepath
provideSlideIds :: Pandoc -> IO Pandoc
provideSlideIds (Pandoc meta body) = do
......
......@@ -4,5 +4,14 @@ flags:
packages:
- '.'
extra-deps:
- haddock-library-1.7.0
- hslua-1.0.1
- hslua-module-text-0.2.0
- HsYAML-0.1.1.2
- libyaml-0.1.0.0
- pandoc-2.4
- pandoc-lens-0.6.3
resolver: lts-12.10
- skylighting-0.7.4
- skylighting-core-0.7.4
- yaml-0.11.0.0
resolver: lts-12.20
......@@ -3,17 +3,17 @@ decker-slide-ids: True
title: Sketch Pad
---
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------
# First Slide {#myslide-dont-touch}
Some body text.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------
# {#sncdl}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------
# Third Slide {#s85zu}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment