method
markup
ruby latest stable - Class:
Generators::RIGenerator
markup(comment)private
No documentation available.
# File lib/rdoc/generators/ri_generator.rb, line 213
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