@@ -359,16 +359,16 class RedCloth < String | |||
|
359 | 359 | ] |
|
360 | 360 | |
|
361 | 361 | QTAGS = [ |
|
362 | ['**', 'b'], | |
|
363 | ['*', 'strong'], | |
|
362 | ['**', 'b', :limit], | |
|
363 | ['*', 'strong', :limit], | |
|
364 | 364 | ['??', 'cite', :limit], |
|
365 | 365 | ['-', 'del', :limit], |
|
366 | ['__', 'i'], | |
|
366 | ['__', 'i', :limit], | |
|
367 | 367 | ['_', 'em', :limit], |
|
368 | 368 | ['%', 'span', :limit], |
|
369 | 369 | ['+', 'ins', :limit], |
|
370 | ['^', 'sup'], | |
|
371 | ['~', 'sub'] | |
|
370 | ['^', 'sup', :limit], | |
|
371 | ['~', 'sub', :limit] | |
|
372 | 372 | ] |
|
373 | 373 | QTAGS.collect! do |rc, ht, rtype| |
|
374 | 374 | rcq = Regexp::quote rc |
@@ -29,6 +29,7 class ApplicationHelperTest < HelperTestCase | |||
|
29 | 29 | def test_auto_links |
|
30 | 30 | to_test = { |
|
31 | 31 | 'http://foo.bar' => '<a class="external" href="http://foo.bar">http://foo.bar</a>', |
|
32 | 'http://foo.bar/~user' => '<a class="external" href="http://foo.bar/~user">http://foo.bar/~user</a>', | |
|
32 | 33 | 'http://foo.bar.' => '<a class="external" href="http://foo.bar">http://foo.bar</a>.', |
|
33 | 34 | 'http://foo.bar/foo.bar#foo.bar.' => '<a class="external" href="http://foo.bar/foo.bar#foo.bar">http://foo.bar/foo.bar#foo.bar</a>.', |
|
34 | 35 | 'www.foo.bar' => '<a class="external" href="http://www.foo.bar">www.foo.bar</a>', |
General Comments 0
You need to be logged in to leave comments.
Login now