Method: Jazzy::Markdown::JazzyHTML#list_item
- Defined in:
- lib/jazzy/jazzy_markdown.rb
#list_item(text, _list_type) ⇒ Object
70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/jazzy/jazzy_markdown.rb', line 70 def list_item(text, _list_type) if text =~ SPECIAL_LIST_TYPE_REGEX type = Regexp.last_match(2) if UNIQUELY_HANDLED_CALLOUTS.include? type.downcase return ELIDED_LI_TOKEN end return render_aside(type, text.sub(/#{Regexp.escape(type)}:\s+/, '')) end str = '<li>' str << text.strip str << "</li>\n" end |