@diplodoc/transform
Version:
A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML
17 lines (16 loc) • 560 B
TypeScript
import type { Dictionary } from 'lodash';
import type { Plugin, Rule } from 'markdownlint';
import type { MarkdownItPreprocessorCb } from '../typings';
import type { LintConfig, PluginOptions } from '.';
export interface Options {
input: string;
plugins?: Function[] | Plugin;
preprocessors?: MarkdownItPreprocessorCb[];
pluginOptions: PluginOptions;
defaultLintConfig?: LintConfig;
lintConfig?: LintConfig;
customLintRules?: Rule[];
sourceMap?: Dictionary<string>;
/** @default true */
enableMarkdownAttrs?: boolean;
}