mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
[ruby/rdoc] Treat emphasis tags as excluding other notations
And exclusive notations don't exclude other exclusive notations.
b8baa9a435
This commit is contained in:
parent
e84d275fe6
commit
61e1cf23ac
3 changed files with 7 additions and 6 deletions
|
@ -75,13 +75,13 @@ class RDoc::Markup::AttributeManager
|
|||
@exclusive_bitmap = 0
|
||||
@attributes = RDoc::Markup::Attributes.new
|
||||
|
||||
add_word_pair "*", "*", :BOLD
|
||||
add_word_pair "_", "_", :EM
|
||||
add_word_pair "*", "*", :BOLD, true
|
||||
add_word_pair "_", "_", :EM, true
|
||||
add_word_pair "+", "+", :TT, true
|
||||
|
||||
add_html "em", :EM
|
||||
add_html "i", :EM
|
||||
add_html "b", :BOLD
|
||||
add_html "em", :EM, true
|
||||
add_html "i", :EM, true
|
||||
add_html "b", :BOLD, true
|
||||
add_html "tt", :TT, true
|
||||
add_html "code", :TT, true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue