NAME HTML::HTML5::Outline - implementation of the HTML5 Outline algorithm SYNOPSIS use JSON; use HTML::HTML5::Outline; my $html = <<'HTML';

Hello

World

Good Morning

Vietnam

HTML my $outline = HTML::HTML5::Outline->new($html); print to_json($outline->to_hashref, {pretty=>1,canonical=>1}); DESCRIPTION This is an implementation of the HTML5 Outline algorithm, as per . The module can output a JSON-friendly hashref, or an RDF model. Constructor * "HTML::HTML5::Outline->new($html, %options)" Construct a new outline. $html is the HTML to generate an outline from, either as an HTML or XHTML string, or as an XML::LibXML::Document object. Options: * default_language - default language to assume text is in when no lang/xml:lang attribute is available. e.g. 'en-gb'. * element_subjects - rather advanced feature that doesn't bear explaining. See USE WITH RDF::RDFA::PARSER for an example. * microformats - support "