File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1- === 3.9.1 / ??
1+ === 3.9.2 / 2011-08-11
2+
3+ * Bug fix
4+ * Loosened TIDYLINK regexp to allow any content in the link section like:
5+ <tt>{foo}[rdoc-ref:SomeClass]</tt>
6+
7+ === 3.9.1 / 2011-07-31
28
39* Bug fixes
410 * Fix RDoc::Markup parser for a header followed by a non-text token. Issue
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def initialize markup = nil
7474 @markup . add_special ( /((link:|https?:|mailto:|ftp:|www\. )\S +\w )/ , :HYPERLINK )
7575
7676 # and links of the form <text>[<url>]
77- @markup . add_special ( /(((\{ .*?\} )|\b \S +?)\[ \S +?\. \S +? \ ] )/ , :TIDYLINK )
77+ @markup . add_special ( /(((\{ .*?\} )|\b \S +?)\[ \S +?\] )/ , :TIDYLINK )
7878
7979 init_tags
8080 end
Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ def test_convert_HYPERLINK_rdoc_ref
2525 assert_equal "\n <p><a href=\" C1.html\" >C1</a></p>\n " , result
2626 end
2727
28+ def test_convert_TIDYLINK_rdoc_ref
29+ result = @to . convert '{foo}[rdoc-ref:C1]'
30+
31+ assert_equal "\n <p><a href=\" C1.html\" >foo</a></p>\n " , result
32+ end
33+
2834 def test_gen_url
2935 assert_equal '<a href="C1.html">Some class</a>' ,
3036 @to . gen_url ( 'rdoc-ref:C1' , 'Some class' )
You can’t perform that action at this time.
0 commit comments