mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc.rb: Updated VERSION.
* lib/rdoc/markup/attribute_manager.rb: Removed useless empty check. * lib/rdoc/markup/to_markdown.rb: Support links from other formats. * lib/rdoc/markup/formatter.rb: ditto. * lib/rdoc/markup/to_html.rb: ditto. * test/rdoc/test_rdoc_markup_formatter.rb: Test for above. * test/rdoc/test_rdoc_markup_to_html.rb: ditto. * test/rdoc/test_rdoc_markup_to_markdown.rb: ditto. * lib/rdoc/rd/block_parser.rb: Improved footnote display. Worked around bug in footnote conversion to Markdown. * test/rdoc/test_rdoc_rd_block_parser.rb: Test for above. * lib/rdoc/rd/inline_parser.rb: Fixed bug with emphasis inside verbatim. * test/rdoc/test_rdoc_rd_inline_parser.rb: Test for above. * test/rdoc/test_rdoc_parser_rd.rb: Use mu_pp, use shortcut methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
10295ab2ff
commit
810008293f
13 changed files with 422 additions and 208 deletions
|
@ -26,7 +26,8 @@ class TestRDocRdInlineParser < RDoc::TestCase
|
|||
assert_equal '{*1}[rdoc-label:foottext-1:footmark-1]', parse('((-text-))')
|
||||
|
||||
expected = [
|
||||
@RM::Paragraph.new('{^1}[rdoc-label:footmark-1:foottext-1]', 'text')
|
||||
@RM::Paragraph.new('{^1}[rdoc-label:footmark-1:foottext-1]', ' ', 'text'),
|
||||
blank_line,
|
||||
]
|
||||
|
||||
assert_equal expected, @block_parser.footnotes
|
||||
|
@ -161,6 +162,10 @@ class TestRDocRdInlineParser < RDoc::TestCase
|
|||
assert_equal '<tt>text "</tt>', parse("(('text \\\"'))")
|
||||
end
|
||||
|
||||
def test_parse_verb_emphasis
|
||||
assert_equal '<tt>((*emphasis*))</tt>', parse("(('((*emphasis*))'))")
|
||||
end
|
||||
|
||||
def test_parse_verb_multiple
|
||||
assert_equal '<tt>((*text*))</tt>', parse("(('((*text*))'))")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue