docutils-ts
Version:
Port of the Python Docutils library to TypeScript
16 lines (15 loc) • 770 B
TypeScript
import Body from './body.js';
import { NodeInterface, StateInterface, RegexpResult, ContextArray, ParseMethodReturnType, Patterns } from "../../../types.js";
/**
* Parser for the contents of a substitution_definition element.
*/
declare class SubstitutionDef extends Body {
protected initialTransitions?: (string | string[])[];
patterns: Patterns;
/** Return a list of nodes. */
literal_block(match: {}, context: string[], nextState: StateInterface): NodeInterface[];
quoted_literal_block(): NodeInterface[];
embedded_directive(match: RegexpResult, context: ContextArray, nextState: StateInterface): void;
text(match: RegexpResult, context: ContextArray, nextState: StateInterface): ParseMethodReturnType;
}
export default SubstitutionDef;