From 556d0c1810af3d1a8cdee309ad7bf95c11423fe9 Mon Sep 17 00:00:00 2001 From: Henrik Tramberend Date: Thu, 21 Jan 2016 12:44:16 +0100 Subject: Markdown writer: Use hyphens for yaml metadata block bottom line --- src/Text/Pandoc/Writers/Markdown.hs | 2 +- tests/writer.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs index 5a92f3cdf..7b56b3fe2 100644 --- a/src/Text/Pandoc/Writers/Markdown.hs +++ b/src/Text/Pandoc/Writers/Markdown.hs @@ -116,7 +116,7 @@ plainTitleBlock tit auths dat = dat <> cr yamlMetadataBlock :: Value -> Doc -yamlMetadataBlock v = "---" $$ (jsonToYaml v) $$ "..." +yamlMetadataBlock v = "---" $$ (jsonToYaml v) $$ "---" jsonToYaml :: Value -> Doc jsonToYaml (Object hashmap) = diff --git a/tests/writer.markdown b/tests/writer.markdown index 6a0b9801c..d705bb044 100644 --- a/tests/writer.markdown +++ b/tests/writer.markdown @@ -4,7 +4,7 @@ author: - Anonymous date: 'July 17, 2006' title: Pandoc Test Suite -... +--- This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite. -- cgit v1.2.3