diff options
author | mpickering <matthewtpickering@gmail.com> | 2014-08-21 16:59:17 +0100 |
---|---|---|
committer | mpickering <matthewtpickering@gmail.com> | 2014-08-21 17:09:40 +0100 |
commit | 2a7319541d7c43fdd80d8b64169aae2e59255a2d (patch) | |
tree | 4666efa2ee5926fe0e2b04b73887be55e029fb15 /tests | |
parent | 2cd049a1bf66f486e7110449854ceb253268fff7 (diff) | |
download | pandoc-2a7319541d7c43fdd80d8b64169aae2e59255a2d.tar.gz |
Txt2Tags Reader: Parse Meta information
The header is now parsed as meta information. The first line is the
`title`, the second is the `author` and third line is the `date`.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/txt2tags.native | 2 | ||||
-rw-r--r-- | tests/txt2tags.t2t | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/txt2tags.native b/tests/txt2tags.native index 5e741b609..189c099e2 100644 --- a/tests/txt2tags.native +++ b/tests/txt2tags.native @@ -1,4 +1,4 @@ -Pandoc (Meta {unMeta = fromList []}) +Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "author"]]),("date",MetaInlines [Str "date"]),("includeconf",MetaString "rules.conf"),("title",MetaInlines [Str "Txt2tags",Space,Str "Markup",Space,Str "Rules"])]}) [Para [Str "This",Space,Str "document",Space,Str "describes",Space,Str "all",Space,Str "the",Space,Str "details",Space,Str "about",Space,Str "each",Space,Str "txt2tags",Space,Str "mark.",Space,Str "The",Space,Str "target",Space,Str "audience",Space,Str "are",Space,Strong [Str "experienced"],Space,Str "users.",Space,Str "You",Space,Str "may",Space,Str "find",Space,Str "it",Space,Str "useful",Space,Str "if",Space,Str "you",Space,Str "want",Space,Str "to",Space,Str "master",Space,Str "the",Space,Str "marks",Space,Str "or",Space,Str "solve",Space,Str "a",Space,Str "specific",Space,Str "problem",Space,Str "about",Space,Str "a",Space,Str "mark."] ,Para [Str "If",Space,Str "you",Space,Str "are",Space,Str "new",Space,Str "to",Space,Str "txt2tags",Space,Str "or",Space,Str "just",Space,Str "want",Space,Str "to",Space,Str "know",Space,Str "which",Space,Str "are",Space,Str "the",Space,Str "available",Space,Str "marks,",Space,Str "please",Space,Str "read",Space,Str "the",Space,Link [Str "Markup",Space,Str "Demo"] ("MARKUPDEMO",""),Str "."] ,Para [Str "Note",Space,Str "1:",Space,Str "This",Space,Str "document",Space,Str "is",Space,Str "generated",Space,Str "directly",Space,Str "from",Space,Str "the",Space,Str "txt2tags",Space,Str "test-suite.",Space,Str "All",Space,Str "the",Space,Str "rules",Space,Str "mentioned",Space,Str "here",Space,Str "are",Space,Str "100%",Space,Str "in",Space,Str "sync",Space,Str "with",Space,Str "the",Space,Str "current",Space,Str "program",Space,Str "code."] diff --git a/tests/txt2tags.t2t b/tests/txt2tags.t2t index e282498d0..d374b7a85 100644 --- a/tests/txt2tags.t2t +++ b/tests/txt2tags.t2t @@ -1,6 +1,6 @@ Txt2tags Markup Rules - - +author +date %!includeconf: rules.conf This document describes all the details about each txt2tags mark. |