docutils-ts
Version:
Port of the Python Docutils library to TypeScript
16 lines (15 loc) • 949 B
TypeScript
import SpecializedText from './specializedText.js';
import { RegexpResult, ContextArray, StateInterface, ParseMethodReturnType } from '../../../types.js';
declare class Line extends SpecializedText {
private eofcheck;
indent(match: RegexpResult, context: ContextArray, nextState: StateInterface): ParseMethodReturnType;
eof(context: ContextArray): ContextArray;
/** Transition marker. */
blank(match: RegexpResult, context: ContextArray, nextState: StateInterface): ParseMethodReturnType;
/** Potential over- & underlined title. */
text(match: RegexpResult, context: ContextArray, nextState: StateInterface): ParseMethodReturnType;
underline(match: RegexpResult, context: ContextArray, nextState: StateInterface): ParseMethodReturnType;
shortOverline(context: any[], blocktext: any | any[], lineno: number, lines?: number): void;
stateCorrection(context: any[], lines?: number): never;
}
export default Line;