From fda0c0119f415c6df95b20730650388c0471241d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 23 Oct 2017 21:40:45 -0700 Subject: Implemented fenced Divs. + Added Ext_fenced_divs to Extensions (default for pandoc Markdown). + Document fenced_divs extension in manual. + Implemented fenced code divs in Markdown reader. + Added test. Closes #168. --- test/command/168.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 test/command/168.md (limited to 'test') diff --git a/test/command/168.md b/test/command/168.md new file mode 100644 index 000000000..0d6183a78 --- /dev/null +++ b/test/command/168.md @@ -0,0 +1,30 @@ +``` +% pandoc -t native +:::::::::: warning :::::::::::: +This is the warning! + +1. list +2. another + +::: {#myid .class key=val} +nested div +::: +::::::::::::::::::::::::::::::: +^D +[Div ("",["warning"],[]) + [Para [Str "This",Space,Str "is",Space,Str "the",Space,Str "warning!"] + ,OrderedList (1,Decimal,Period) + [[Plain [Str "list"]] + ,[Plain [Str "another"]]] + ,Div ("myid",["class"],[("key","val")]) + [Plain [Str "nested",Space,Str "div"]]]] +``` + +``` +% pandoc -t native +foo +::: +bar +^D +[Para [Str "foo",SoftBreak,Str ":::",SoftBreak,Str "bar"]] +``` -- cgit v1.2.3