From 32f357c1108306b35a8d7ccbf2503a733ca9b529 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sun, 28 Jun 2009 01:38:40 +0000 Subject: RST reader: Allow # to continue list... ...even if the list was started with an explicit marker. For example: A. my list #. continued Resolves Issue #140. Test case also added. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1584 788f1e2b-df1e-0410-8736-df70ead52e1b --- tests/rst-reader.native | 4 ++++ tests/rst-reader.rst | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/rst-reader.native b/tests/rst-reader.native index 88a036ebc..8848fa111 100644 --- a/tests/rst-reader.native +++ b/tests/rst-reader.native @@ -146,6 +146,10 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":",Space,Str , OrderedList (1,DefaultStyle,DefaultDelim) [ [ Plain [Str "Nested."] ] ] ] ] +, Para [Str "Autonumbering",Space,Str "with",Space,Str "explicit",Space,Str "start",Str ":"] +, OrderedList (4,LowerAlpha,TwoParens) + [ [ Plain [Str "item",Space,Str "1"] ] + , [ Plain [Str "item",Space,Str "2"] ] ] , Header 2 [Str "Definition"] , DefinitionList [ ([Str "term",Space,Str "1"], diff --git a/tests/rst-reader.rst b/tests/rst-reader.rst index 2fcb4a5b9..2cc99d294 100644 --- a/tests/rst-reader.rst +++ b/tests/rst-reader.rst @@ -242,6 +242,11 @@ Autonumbering: #. Nested. +Autonumbering with explicit start: + +(d) item 1 +(#) item 2 + Definition ---------- -- cgit v1.2.3