instance method
format_list_item
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
format_list_item(lines, bullet)
No documentation comment.
Parameters
-
linesreq -
bulletreq
Source
# File actiontext/lib/action_text/markdown_conversion.rb, line 301
def format_list_item(lines, bullet)
first, *rest = lines
leader = first.match?(LIST_BULLET) ? LIST_INDENT : bullet
([ leader + first ] + rest.map { |line| LIST_INDENT + line }).join("\n")
end
Defined in actiontext/lib/action_text/markdown_conversion.rb line 301
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::MarkdownConversion