GitHub Flavored Markdown support addon for Storybook documentation.
69
A helper that integrates the official MDX GFM migration addon while surfacing its deprecation guidance.
@generates
export interface MdxLoaderConfig {
mdxCompileOptions?: {
remarkPlugins?: any[];
[key: string]: any;
};
[key: string]: any;
}
/**
* Ensures the official GFM migration addon runs so its deprecation warning is surfaced and MDX config is patched.
* @param config Existing MDX loader config object.
* @param log Logger invoked with the warning text when emitted; defaults to console.warn when omitted.
* @returns The MDX config returned by the addon after applying GFM support.
*/
export function applyGfmMigrationAddon(
config: MdxLoaderConfig,
log?: (message: string) => void
): Promise<MdxLoaderConfig>;Provides the migration helper that patches MDX loader options and emits a deprecation warning guiding users to configure remark-gfm directly.
Install with Tessl CLI
npx tessl i tessl/npm-storybook--addon-mdx-gfm