From 6f5a6cd7353b8ff8243c86df75432780ba643944 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 6 Feb 2018 05:33:32 +0100 Subject: no pandoc dependencies --- src/Secret.hs | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 src/Secret.hs (limited to 'src/Secret.hs') diff --git a/src/Secret.hs b/src/Secret.hs deleted file mode 100644 index 7b428ce..0000000 --- a/src/Secret.hs +++ /dev/null @@ -1,46 +0,0 @@ -module Secret -( to_secret -) where - - -{- - - - - Écrit par Hédy GIRAUDEAU - - 27/07/17 - - --} - - - -import Text.Pandoc -import Text.Pandoc.JSON - - -firstLine :: [Inline] -> ([Inline],[Inline]) -firstLine [] = ([],[]) -firstLine ((SoftBreak) : x) = ([], x) -firstLine (x:q) = ([x] ++ y, z) where (y,z) = (firstLine q) - - - - -to_secret (BlockQuote (Para (Str(first) : inlines) : blocks)) = - Div - ("", ["secret"], []) - ([ - RawBlock (Format "html") - (start_detail ++ start_summary) - ] ++ [Plain $ fLine] ++ [ - RawBlock (Format "html") - (end_summary) - ] ++ [ Plain rest ]++ blocks ++ [ - RawBlock (Format "html") - (end_detail) - ] - ) - where start_detail = "
" - start_summary = "" - end_detail = "
" - end_summary = "" - (fLine, rest) = firstLine inlines - -- cgit v1.2.3-54-g00ecf