UNPKG

@diplodoc/transform

Version:

A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML

20 lines (18 loc) 650 B
import type {Dictionary} from 'lodash'; // eslint-disable-next-line @typescript-eslint/no-redeclare 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>; // TODO: set false in next major /** @default true */ enableMarkdownAttrs?: boolean; }