Class: Rosetta
- Inherits:
-
Object
- Object
- Rosetta
- Defined in:
- lib/rosetta-ruby.rb
Overview
Entry point for rosetta-ruby gem.
Class Method Summary collapse
Class Method Details
.markdown_to_html(markdown_source) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/rosetta-ruby.rb', line 9 def self.markdown_to_html(markdown_source) source_tokens = InputScanner.call(markdown_source) abstract_syntax_tree = AbstractSyntaxTree.new(source_tokens) HTMLWriter.call(abstract_syntax_tree.token_tree) end |