docutils-ts
Version:
Port of the Python Docutils library to TypeScript
58 lines (56 loc) • 1.85 kB
TypeScript
import { Document, ElementInterface, LoggerType } from "../../types.js";
import { Settings } from "../../settings.js";
import { InlinerInterface } from "./types.js";
/**
* Parse inline markup; call the `parse()` method.
*/
declare class Inliner implements InlinerInterface {
private language;
private dispatch;
private implicitDispatch;
private nonWhitespaceAfter;
private nonWhitespaceBefore;
private nonWhitespaceEscapeBefore;
private nonUnescapedWhitespaceEscapeBefore;
patterns: any;
private reporter;
private parent?;
private document;
private simplename;
private parts;
private startStringPrefix;
private endStringSuffix;
private logger;
/**
* Create Inliner instance
*/
constructor(document: Document, logger: LoggerType);
inline_internal_target(match: any, lineno: number): any[];
substitution_reference(match: any, lineno: number): any[];
footnote_reference(match: any, lineno: number): any[];
reference(match: any, lineno: number, anonymous?: boolean): any[];
private anonymous_reference;
private problematic;
private emphasis;
private strong;
private interpreted_or_phrase_ref;
private phrase_ref;
/** Test if inline markup start-string is 'quoted'.
'Quoted' in this context means the start-string is enclosed in a pair
of matching opening/closing delimiters (not necessarily quotes)
or at the end of the match.
*/
private quoted_start;
private inline_obj;
initCustomizations(settings: Settings): void;
parse(text: string, args: {
lineno: number;
memo: any;
parent: ElementInterface;
}): any[];
private implicit_inline;
adjustUri(uri: string): string;
private interpreted;
private literal;
}
export default Inliner;