Module: MarkdownFormatter

Defined in:
lib/markdown_formatter.rb,
lib/markdown_formatter/ast.rb,
lib/markdown_formatter/cli.rb,
lib/markdown_formatter/version.rb,
lib/markdown_formatter/nodes/base.rb,
lib/markdown_formatter/nodes/link.rb,
lib/markdown_formatter/nodes/list.rb,
lib/markdown_formatter/nodes/blank.rb,
lib/markdown_formatter/nodes/image.rb,
lib/markdown_formatter/nodes/entity.rb,
lib/markdown_formatter/nodes/header.rb,
lib/markdown_formatter/nodes/inline.rb,
lib/markdown_formatter/nodes/strong.rb,
lib/markdown_formatter/nodes/emphasis.rb,
lib/markdown_formatter/nodes/footnote.rb,
lib/markdown_formatter/nodes/code_span.rb,
lib/markdown_formatter/nodes/list_item.rb,
lib/markdown_formatter/nodes/paragraph.rb,
lib/markdown_formatter/nodes/code_block.rb,
lib/markdown_formatter/nodes/leaf_block.rb,
lib/markdown_formatter/nodes/block_quote.rb,
lib/markdown_formatter/nodes/smart_quote.rb,
lib/markdown_formatter/nodes/html_element.rb,
lib/markdown_formatter/nodes/thematic_break.rb,
lib/markdown_formatter/nodes/container_block.rb,
lib/markdown_formatter/nodes/typographic_sym.rb

Defined Under Namespace

Modules: ASTNode Classes: AST, CLI

Constant Summary collapse

OPTIONS =
{}
VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.format(source) ⇒ Object



54
55
56
# File 'lib/markdown_formatter.rb', line 54

def self.format(source)
  AST.new(source).to_s
end