method
markup
v1_9_1_378 -
Show latest stable
- Class:
RDoc::Generator::RI
markup(comment)private
No documentation available.
# File lib/rdoc/generator/ri.rb, line 167
def markup(comment)
return nil if !comment || comment.empty?
# Convert leading comment markers to spaces, but only
# if all non-blank lines have them
if comment =~ /^(?>\s*)[^\#]/
content = comment
else
content = comment.gsub(/^\s*(#+)/) { $1.tr('#',' ') }
end
@markup.convert(content, @to_flow)
end