GitHub Flavored Markdown support addon for Storybook documentation.
69
Utility for custom build pipelines to ensure MDX loader options include GitHub Flavored Markdown support by delegating to the dependency's helper instead of hand-assembling options.
remarkPlugins, returns options that include GitHub Flavored Markdown support by delegating to the dependency's helper @testremarkPlugins already contain entries (including an existing GFM plugin), the returned options preserve them and avoid duplicate GFM entries @testproviderImportSource, rehypePlugins) identical to input while augmenting remarkPlugins @test@generates
export interface MdxCompileOptions {
remarkPlugins?: unknown[];
rehypePlugins?: unknown[];
providerImportSource?: string;
[key: string]: unknown;
}
/**
* Applies GitHub Flavored Markdown support to MDX compile options using the dependency's helper
* while preserving existing plugin lists and other settings.
*/
export function applyGfmToMdxOptions(options: MdxCompileOptions): MdxCompileOptions;Provides a configuration helper to augment MDX loader options with GitHub Flavored Markdown support for Storybook-style MDX pipelines. @satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-storybook--addon-mdx-gfm