UNPKG

docutils-ts

Version:

Port of the Python Docutils library to TypeScript

20 lines (19 loc) 1.07 kB
import RSTState from './rstState.js'; import { NodeInterface, RegexpResult, ContextArray, StateInterface, ParseMethodReturnType, Patterns } from '../../../types.js'; import State from "../../../states/state.js"; declare class Text extends RSTState { protected initialTransitions?: (string | string[])[]; patterns: Patterns; blank(match: RegexpResult | null, context: ContextArray, nextState: StateInterface | null): any[]; eof(context: ContextArray): ContextArray; /** Definition list item. */ indent(match: RegexpResult, context: ContextArray, nextState: StateInterface): ParseMethodReturnType; underline(match: RegexpResult, context: ContextArray, nextState: StateInterface): any[]; text(match: any, context: string[], nextState: State): any[]; /** Return a list of nodes. */ literal_block(): NodeInterface[]; quoted_literal_block(): NodeInterface[]; definition_list_item(termline: string[]): [NodeInterface, boolean]; term(lines: any[], lineno: number): [NodeInterface[], NodeInterface[]]; } export default Text;