diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-02-20 21:43:15 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-02-20 21:43:15 -0800 |
commit | 649cfb61b85ee4c512365afada0c056c3f8b7148 (patch) | |
tree | 25b7aecd623584f829a5e87c4bc0f5bfd8a36e68 | |
parent | e369e60fb457df56cf81a84b5114818dfb023144 (diff) | |
parent | 556d0c1810af3d1a8cdee309ad7bf95c11423fe9 (diff) | |
download | pandoc-649cfb61b85ee4c512365afada0c056c3f8b7148.tar.gz |
Merge pull request #2668 from monofon/fix/yaml-metadata-block-bottom-line
Markdown writer: Use hyphens for yaml metadata block bottom line
-rw-r--r-- | src/Text/Pandoc/Writers/Markdown.hs | 2 | ||||
-rw-r--r-- | 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 4c4675524..ce993093c 100644 --- a/src/Text/Pandoc/Writers/Markdown.hs +++ b/src/Text/Pandoc/Writers/Markdown.hs @@ -117,7 +117,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. |