UNPKG

docutils-ts

Version:

Port of the Python Docutils library to TypeScript

99 lines (98 loc) 11.5 kB
import * as nodes from "./nodes.js"; export default { math_block: (rawsource, text, children = [], attributes = {}) => new nodes.math_block(rawsource, text, children, attributes), comment: (rawsource, text, children = [], attributes = {}) => new nodes.comment(rawsource, text, children, attributes), literal_block: (rawsource, text, children = [], attributes = {}) => new nodes.literal_block(rawsource, text, children, attributes), raw: (rawsource, text, children = [], attributes = {}) => new nodes.raw(rawsource, text, children, attributes), address: (rawsource, text, children = [], attributes = {}) => new nodes.address(rawsource, text, children, attributes), doctest_block: (rawsource, text, children = [], attributes = {}) => new nodes.doctest_block(rawsource, text, children, attributes), paragraph: (rawsource, text, children = [], attributes = {}) => new nodes.paragraph(rawsource, text, children, attributes), acronym: (rawsource, text, children = [], attributes = {}) => new nodes.acronym(rawsource, text, children, attributes), revision: (rawsource, text, children = [], attributes = {}) => new nodes.revision(rawsource, text, children, attributes), target: (rawsource, text, children = [], attributes = {}) => new nodes.target(rawsource, text, children, attributes), strong: (rawsource, text, children = [], attributes = {}) => new nodes.strong(rawsource, text, children, attributes), organization: (rawsource, text, children = [], attributes = {}) => new nodes.organization(rawsource, text, children, attributes), term: (rawsource, text, children = [], attributes = {}) => new nodes.term(rawsource, text, children, attributes), abbreviation: (rawsource, text, children = [], attributes = {}) => new nodes.abbreviation(rawsource, text, children, attributes), label: (rawsource, text, children = [], attributes = {}) => new nodes.label(rawsource, text, children, attributes), footnote_reference: (rawsource, text, children = [], attributes = {}) => new nodes.footnote_reference(rawsource, text, children, attributes), title: (rawsource, text, children = [], attributes = {}) => new nodes.title(rawsource, text, children, attributes), contact: (rawsource, text, children = [], attributes = {}) => new nodes.contact(rawsource, text, children, attributes), substitution_reference: (rawsource, text, children = [], attributes = {}) => new nodes.substitution_reference(rawsource, text, children, attributes), copyright: (rawsource, text, children = [], attributes = {}) => new nodes.copyright(rawsource, text, children, attributes), rubric: (rawsource, text, children = [], attributes = {}) => new nodes.rubric(rawsource, text, children, attributes), citation_reference: (rawsource, text, children = [], attributes = {}) => new nodes.citation_reference(rawsource, text, children, attributes), subscript: (rawsource, text, children = [], attributes = {}) => new nodes.subscript(rawsource, text, children, attributes), attribution: (rawsource, text, children = [], attributes = {}) => new nodes.attribution(rawsource, text, children, attributes), classifier: (rawsource, text, children = [], attributes = {}) => new nodes.classifier(rawsource, text, children, attributes), generated: (rawsource, text, children = [], attributes = {}) => new nodes.generated(rawsource, text, children, attributes), status: (rawsource, text, children = [], attributes = {}) => new nodes.status(rawsource, text, children, attributes), reference: (rawsource, text, children = [], attributes = {}) => new nodes.reference(rawsource, text, children, attributes), date: (rawsource, text, children = [], attributes = {}) => new nodes.date(rawsource, text, children, attributes), line: (rawsource, text, children = [], attributes = {}) => new nodes.line(rawsource, text, children, attributes), option_argument: (rawsource, text, children = [], attributes = {}) => new nodes.option_argument(rawsource, text, children, attributes), field_name: (rawsource, text, children = [], attributes = {}) => new nodes.field_name(rawsource, text, children, attributes), subtitle: (rawsource, text, children = [], attributes = {}) => new nodes.subtitle(rawsource, text, children, attributes), emphasis: (rawsource, text, children = [], attributes = {}) => new nodes.emphasis(rawsource, text, children, attributes), substitution_definition: (rawsource, text, children = [], attributes = {}) => new nodes.substitution_definition(rawsource, text, children, attributes), math: (rawsource, text, children = [], attributes = {}) => new nodes.math(rawsource, text, children, attributes), problematic: (rawsource, text, children = [], attributes = {}) => new nodes.problematic(rawsource, text, children, attributes), version: (rawsource, text, children = [], attributes = {}) => new nodes.version(rawsource, text, children, attributes), title_reference: (rawsource, text, children = [], attributes = {}) => new nodes.title_reference(rawsource, text, children, attributes), author: (rawsource, text, children = [], attributes = {}) => new nodes.author(rawsource, text, children, attributes), superscript: (rawsource, text, children = [], attributes = {}) => new nodes.superscript(rawsource, text, children, attributes), caption: (rawsource, text, children = [], attributes = {}) => new nodes.caption(rawsource, text, children, attributes), option_string: (rawsource, text, children = [], attributes = {}) => new nodes.option_string(rawsource, text, children, attributes), literal: (rawsource, text, children = [], attributes = {}) => new nodes.literal(rawsource, text, children, attributes), inline: (rawsource, text, children = [], attributes = {}) => new nodes.inline(rawsource, text, children, attributes), list_item: (rawsource, children = [], attributes = {}) => new nodes.list_item(rawsource, children, attributes), option_list_item: (rawsource, children = [], attributes = {}) => new nodes.option_list_item(rawsource, children, attributes), colspec: (rawsource, children = [], attributes = {}) => new nodes.colspec(rawsource, children, attributes), option_list: (rawsource, children = [], attributes = {}) => new nodes.option_list(rawsource, children, attributes), hint: (rawsource, children = [], attributes = {}) => new nodes.hint(rawsource, children, attributes), tip: (rawsource, children = [], attributes = {}) => new nodes.tip(rawsource, children, attributes), table: (rawsource, children = [], attributes = {}) => new nodes.table(rawsource, children, attributes), note: (rawsource, children = [], attributes = {}) => new nodes.note(rawsource, children, attributes), caution: (rawsource, children = [], attributes = {}) => new nodes.caution(rawsource, children, attributes), admonition: (rawsource, children = [], attributes = {}) => new nodes.admonition(rawsource, children, attributes), figure: (rawsource, children = [], attributes = {}) => new nodes.figure(rawsource, children, attributes), footnote: (rawsource, children = [], attributes = {}) => new nodes.footnote(rawsource, children, attributes), topic: (rawsource, children = [], attributes = {}) => new nodes.topic(rawsource, children, attributes), bullet_list: (rawsource, children = [], attributes = {}) => new nodes.bullet_list(rawsource, children, attributes), compound: (rawsource, children = [], attributes = {}) => new nodes.compound(rawsource, children, attributes), footer: (rawsource, children = [], attributes = {}) => new nodes.footer(rawsource, children, attributes), tbody: (rawsource, children = [], attributes = {}) => new nodes.tbody(rawsource, children, attributes), thead: (rawsource, children = [], attributes = {}) => new nodes.thead(rawsource, children, attributes), field_list: (rawsource, children = [], attributes = {}) => new nodes.field_list(rawsource, children, attributes), definition_list: (rawsource, children = [], attributes = {}) => new nodes.definition_list(rawsource, children, attributes), definition_list_item: (rawsource, children = [], attributes = {}) => new nodes.definition_list_item(rawsource, children, attributes), decoration: (rawsource, children = [], attributes = {}) => new nodes.decoration(rawsource, children, attributes), error: (rawsource, children = [], attributes = {}) => new nodes.error(rawsource, children, attributes), transition: (rawsource, children = [], attributes = {}) => new nodes.transition(rawsource, children, attributes), image: (rawsource, children = [], attributes = {}) => new nodes.image(rawsource, children, attributes), field: (rawsource, children = [], attributes = {}) => new nodes.field(rawsource, children, attributes), block_quote: (rawsource, children = [], attributes = {}) => new nodes.block_quote(rawsource, children, attributes), sidebar: (rawsource, children = [], attributes = {}) => new nodes.sidebar(rawsource, children, attributes), description: (rawsource, children = [], attributes = {}) => new nodes.description(rawsource, children, attributes), entry: (rawsource, children = [], attributes = {}) => new nodes.entry(rawsource, children, attributes), section: (rawsource, children = [], attributes = {}) => new nodes.section(rawsource, children, attributes), line_block: (rawsource, children = [], attributes = {}) => new nodes.line_block(rawsource, children, attributes), danger: (rawsource, children = [], attributes = {}) => new nodes.danger(rawsource, children, attributes), header: (rawsource, children = [], attributes = {}) => new nodes.header(rawsource, children, attributes), important: (rawsource, children = [], attributes = {}) => new nodes.important(rawsource, children, attributes), option: (rawsource, children = [], attributes = {}) => new nodes.option(rawsource, children, attributes), warning: (rawsource, children = [], attributes = {}) => new nodes.warning(rawsource, children, attributes), container: (rawsource, children = [], attributes = {}) => new nodes.container(rawsource, children, attributes), field_body: (rawsource, children = [], attributes = {}) => new nodes.field_body(rawsource, children, attributes), legend: (rawsource, children = [], attributes = {}) => new nodes.legend(rawsource, children, attributes), definition: (rawsource, children = [], attributes = {}) => new nodes.definition(rawsource, children, attributes), docinfo: (rawsource, children = [], attributes = {}) => new nodes.docinfo(rawsource, children, attributes), enumerated_list: (rawsource, children = [], attributes = {}) => new nodes.enumerated_list(rawsource, children, attributes), row: (rawsource, children = [], attributes = {}) => new nodes.row(rawsource, children, attributes), tgroup: (rawsource, children = [], attributes = {}) => new nodes.tgroup(rawsource, children, attributes), option_group: (rawsource, children = [], attributes = {}) => new nodes.option_group(rawsource, children, attributes), authors: (rawsource, children = [], attributes = {}) => new nodes.authors(rawsource, children, attributes), attention: (rawsource, children = [], attributes = {}) => new nodes.attention(rawsource, children, attributes), citation: (rawsource, children = [], attributes = {}) => new nodes.citation(rawsource, children, attributes), Text: (data, rawsource) => new nodes.Text(data, rawsource) };