Module: Slamdown::Parsing
- Defined in:
- lib/slamdown/parsing.rb,
lib/slamdown/parsing/html.rb,
lib/slamdown/parsing/node.rb,
lib/slamdown/parsing/parsed_node_adapter.rb
Defined Under Namespace
Classes: Html, Node, ParsedNodeAdapter
Class Method Summary collapse
-
.parse(source, options = {}) ⇒ Object
Parses HTML through Slamdown's isolated Kramdown extension and returns the format-neutral tree together with any parser warnings.
Class Method Details
.parse(source, options = {}) ⇒ Object
Parses HTML through Slamdown's isolated Kramdown extension and returns the format-neutral tree together with any parser warnings.
11 12 13 14 |
# File 'lib/slamdown/parsing.rb', line 11 def self.parse(source, = {}) root, warnings = Html.parse(source, ) [ParsedNodeAdapter.adapt(root), warnings] end |