From e95047ed85872fbc44e261df74add4e4f9bef30d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 28 Sep 2016 12:33:05 +0200 Subject: Markdown reader: added bracket syntax for native spans. See #168. Text.Pandoc.Options.Extension has a new constructor `Ext_brackted_spans`, which is enabled by default in pandoc's Markdown. --- tests/markdown-reader-more.native | 4 +++- tests/markdown-reader-more.txt | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/markdown-reader-more.native b/tests/markdown-reader-more.native index c38ffe038..136996068 100644 --- a/tests/markdown-reader-more.native +++ b/tests/markdown-reader-more.native @@ -163,4 +163,6 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "Author",S ,Para [Link ("",[],[]) [Str "foo2"] ("","")] ,Header 2 ("wrapping-shouldnt-introduce-new-list-items",[],[]) [Str "Wrapping",Space,Str "shouldn\8217t",Space,Str "introduce",Space,Str "new",Space,Str "list",Space,Str "items"] ,BulletList - [[Plain [Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "2015."]]]] + [[Plain [Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "2015."]]] +,Header 2 ("bracketed-spans",[],[]) [Str "Bracketed",Space,Str "spans"] +,Para [Span ("id",["class"],[("key","val")]) [Emph [Str "foo"],Space,Str "bar",Space,Str "baz",Space,Link ("",[],[]) [Str "link"] ("url","")]]] diff --git a/tests/markdown-reader-more.txt b/tests/markdown-reader-more.txt index 4906a2eea..f649270c6 100644 --- a/tests/markdown-reader-more.txt +++ b/tests/markdown-reader-more.txt @@ -287,3 +287,6 @@ bar - blah blah blah blah blah blah blah blah blah blah blah blah blah blah 2015. +## Bracketed spans + +[*foo* bar baz [link](url)]{.class #id key=val} -- cgit v1.2.3