Class: MarkdownParserService
- Inherits:
-
Object
- Object
- MarkdownParserService
- Defined in:
- lib/renuo/cli/app/services/markdown_parser_service.rb
Defined Under Namespace
Classes: ListExtractor
Instance Method Summary collapse
Instance Method Details
#parse_markdown(markdown_text) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/renuo/cli/app/services/markdown_parser_service.rb', line 26 def parse_markdown(markdown_text) renderer = ListExtractor.new markdown = Redcarpet::Markdown.new(renderer) markdown.render(markdown_text) renderer.files end |