diff options
Diffstat (limited to 'build/extract-title.hs')
-rwxr-xr-x | build/extract-title.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/extract-title.hs b/build/extract-title.hs index f3ca1ba..a84442e 100755 --- a/build/extract-title.hs +++ b/build/extract-title.hs | |||
@@ -5,7 +5,7 @@ import Text.Pandoc.JSON | |||
5 | import System.IO | 5 | import System.IO |
6 | 6 | ||
7 | extract_title :: Pandoc -> IO Pandoc | 7 | extract_title :: Pandoc -> IO Pandoc |
8 | extract_title d@(Pandoc m _) = do hPutStrLn stderr $ render Nothing $ cat $ map pretty (docTitle m) | 8 | extract_title d@(Pandoc m _) = do hPutStrLn stderr $ (++) "title: " $ render Nothing $ cat $ map pretty (docTitle m) |
9 | return d | 9 | return d |
10 | where pretty :: Inline -> Doc | 10 | where pretty :: Inline -> Doc |
11 | pretty (Str s) = text s | 11 | pretty (Str s) = text s |