1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Allow inline markup to have a leading '#' or '\', or trailing punctuation.

i.e. *#freeze?*, *\foo?*.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2008-02-12 23:59:03 +00:00
parent b797fdc7e8
commit bcd4deb6c5
4 changed files with 43 additions and 11 deletions

View file

@ -334,6 +334,20 @@ class TestRDocMarkup < Test::Unit::TestCase
"L1: ListEnd\n" ])
end
def test_list_nested_number_number
str = "1. one\n1. two\n 1. cat\n 1. dog"
line_groups(str,
[ "L1: ListStart\n",
"L1: NUMBER ListItem\none",
"L1: NUMBER ListItem\ntwo",
"L2: ListStart\n",
"L2: NUMBER ListItem\ncat",
"L2: NUMBER ListItem\ndog",
"L2: ListEnd\n",
"L1: ListEnd\n" ])
end
def test_list_number
str = "1. one\n2. two\n1. three"