diff options
author | aycabta <aycabta@gmail.com> | 2021-03-14 18:26:19 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-04-03 01:21:12 +0900 |
commit | 54aa11efa8b1be2c5d20402890d6d2fa90aa19a8 (patch) | |
tree | 8eb3e980e5ea244560337bec32ca1f8c87fdc7f6 /test/rdoc/test_rdoc_markup_to_html.rb | |
parent | ab89c45b906380353d1b399781170cafe1d7b503 (diff) |
[ruby/rdoc] Disable other notations in <code> tags
https://github.com/ruby/rdoc/commit/0cd3b55210
Diffstat (limited to 'test/rdoc/test_rdoc_markup_to_html.rb')
-rw-r--r-- | test/rdoc/test_rdoc_markup_to_html.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_markup_to_html.rb b/test/rdoc/test_rdoc_markup_to_html.rb index fb94269064..6ec52989c7 100644 --- a/test/rdoc/test_rdoc_markup_to_html.rb +++ b/test/rdoc/test_rdoc_markup_to_html.rb @@ -704,6 +704,12 @@ EXPECTED assert_equal "\n<p><a href=\"irc://irc.freenode.net/#ruby-lang\">ruby-lang</a></p>\n", result end + def test_convert_with_exclude_tag + assert_equal "\n<p><code>aaa</code>[:symbol]</p>\n", @to.convert('+aaa+[:symbol]') + assert_equal "\n<p><code>aaa[:symbol]</code></p>\n", @to.convert('+aaa[:symbol]+') + assert_equal "\n<p><a href=\":symbol\">aaa</a></p>\n", @to.convert('aaa[:symbol]') + end + def test_gen_url assert_equal '<a href="example">example</a>', @to.gen_url('link:example', 'example') |