From 77ba3429e2616a95535706f5c79fe7bc85e5b4b1 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sun, 28 Feb 2010 11:21:19 +0000 Subject: Allow multi-line titles and authors in meta block. Based on a patch by Justin Bogner. Titles may span multiple lines, provided continuation lines begin with a space character. Separate authors may be put on multiple lines, provided each line after the first begins with a space character. Each author must fit on one line. Multiple authors on a single line may still be separated by a semicolon. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1854 788f1e2b-df1e-0410-8736-df70ead52e1b --- tests/markdown-reader-more.native | 2 +- tests/markdown-reader-more.txt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/markdown-reader-more.native b/tests/markdown-reader-more.native index 1db191c16..a39965970 100644 --- a/tests/markdown-reader-more.native +++ b/tests/markdown-reader-more.native @@ -1,4 +1,4 @@ -Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) +Pandoc (Meta {docTitle = [Str "Title",Space,Str "spanning",Space,Str "multiple",Space,Str "lines"], docAuthors = [[Str "Author",Space,Str "One"],[Str "Author",Space,Str "Two"],[Str "Author",Space,Str "Three"],[Str "Author",Space,Str "Four"]], docDate = []}) [ Header 1 [Str "Additional",Space,Str "markdown",Space,Str "reader",Space,Str "tests"] , Header 2 [Str "Blank",Space,Str "line",Space,Str "before",Space,Str "URL",Space,Str "in",Space,Str "link",Space,Str "reference"] , Para [Link [Str "foo"] ("/url",""),Space,Str "and",Space,Link [Str "bar"] ("/url","title")] diff --git a/tests/markdown-reader-more.txt b/tests/markdown-reader-more.txt index 4689ee84a..de80d740b 100644 --- a/tests/markdown-reader-more.txt +++ b/tests/markdown-reader-more.txt @@ -1,3 +1,9 @@ +% Title + spanning multiple lines +% Author One + Author Two; Author Three; + Author Four + # Additional markdown reader tests ## Blank line before URL in link reference -- cgit v1.2.3