Class: HamdownCore::Ast::HtmlOlListItem

Inherits:
HtmlListItem show all
Defined in:
lib/hamdown_core/ast.rb

Instance Attribute Summary

Attributes inherited from BaseText

#escape_html, #filename, #lineno

Instance Method Summary collapse

Methods inherited from HtmlListItem

#html_list_item?, #markdownable?, #to_ol_list_item!, #to_ul_list_item!

Methods inherited from BaseText

#initialize, #markdownable?, #to_h

Constructor Details

This class inherits a constructor from HamdownCore::Ast::BaseText

Instance Method Details

#textObject



213
214
215
216
# File 'lib/hamdown_core/ast.rb', line 213

def text
  str = super.gsub('<li>', '').gsub('</li>', '')
  "1. #{str}"
end