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