ExperimentalExperimental_Experimental_Experimental_ExperimentalbackendExperimentalreadExperimentalThe logger for this converter. The Logging mixin (logging.js) overrides this getter on the instance.
ExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalConvert using only content (no wrapping).
the node whose content to return
ExperimentalConvert a node by dispatching to a convert_<transform> method.
the AbstractNode to convert
Optionaltransform: stringhint for which method to call (default: node.nodeName)
Optionalopts: objectoptional hints
the result of the convert_<transform> handler; the actual type depends on the implementation
ExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalOptionalopts: {}ExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalExperimentalAlias for messageWithContext (used in extensions).
Optionalcontext: {}ExperimentalExperimentalReport whether this converter can handle the given transform.
the transform name
ExperimentalBuild an auto-formatting log message that carries structured source_location
(rather than baking it into the text), for use with this.logger.warn(...).
Optionalcontext: { include_location?: any; source_location?: any }ExperimentalSkip conversion (no-op).
StaticcreateExperimentalCreate a new SemanticHtml5Converter instance.
Optionalbackend: stringOptionalopts: anyStaticregisterExperimentalRegister this converter class with the global registry.
backend names to register for
A built-in converter that generates HTML 5 output maximizing the use of semantic constructs —
<section>,<aside>,<figure>,<nav>,<blockquote>, DPUB-ARIA roles — instead of the AsciiDoc.py-compatible markup produced by the defaulthtml5backend.Registered for the
semantic-html5backend:This converter is experimental. It is the fast-iteration testbed for the modern HTML output effort started upstream in Asciidoctor's
feature/html-converter-nextbranch (see asciidoctor#242): shipping it here lets the semantic markup decisions be evaluated against real projects and real stylesheets, and the decisions that prove solid are meant to be ported back to the Ruby implementation. Consequences:html5backend, and thehtml5backend's output is not affected in any way;The scenario fixtures under
test/fixtures/semantic-html5-scenarios/(shared with the upstream branch) are the source of truth for the emitted markup, and the per-node element mapping and design rationale are documented indevdocs/semantic-html5-converter.adoc.