module

ActionText::PlainTextConversion

Class methods

block(text : String) : String
Source
bullet_for(node : Lexbor::Node) : String
Source
children_text(node : Lexbor::Node) : String
Source
list_depth(node : Lexbor::Node) : Int32

Number of ul/ol ancestors (Ruby: ancestors.grep(/^[uo]l$/).count).

Source
node_to_plain_text(node : Lexbor::Node) : String
Source
quote_text(text : String) : String

Ruby: insert(rindex(/\S/)+1, "”") then insert(index(/\S/), "“")

Source
reduce(node : Lexbor::Node) : String
Source
remove_trailing_newlines(text : String) : String
Source