@diplodoc/transform
Version:
A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML
13 lines (12 loc) • 460 B
TypeScript
import type Token from 'markdown-it/lib/token';
import type { OptionsType, OutputType } from './typings';
declare type TokensOptionsType = OptionsType & {
tokens: true;
};
declare function transform(originInput: string, options: TokensOptionsType): Token[];
declare function transform(originInput: string, options?: OptionsType): OutputType;
export = transform;
declare namespace transform {
type Options = OptionsType;
type Output = OutputType;
}