We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ef4934 commit a56019bCopy full SHA for a56019b
lib/rdoc/markup/heading.rb
@@ -68,8 +68,8 @@ def label context = nil
68
def plain_html
69
text = self.text.dup
70
71
- if text.match?(/rdoc-image:[^:]+:(.*)/)
72
- text = text.match(/rdoc-image:[^:]+:(.*)/)[1]
+ if matched = text.match(/rdoc-image:[^:]+:(.*)/)
+ text = matched[1]
73
end
74
75
self.class.to_html.to_html(text)
0 commit comments