instance method format_list_item

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

format_list_item(lines, bullet)

No documentation comment.

Parameters

lines req
bullet req
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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close