UNPKG

next-mdx-remote-client

Version:

A wrapper of the `@mdx-js/mdx` for the `nextjs` applications in order to load MDX content. It is a fork of `next-mdx-remote`.

16 lines (15 loc) 498 B
/** * Copyright (c) @talatkuyuk AKA @ipikuka * SPDX-License-Identifier: MPL-2.0 */ import { type Compatible } from "vfile"; /** * gets the fronmatter and the stripped source * * @param source markdown or MDX source * @returns fronmatter and stripped source. If no matter is found, the frontmatter is an empty object. */ export declare function getFrontmatter<TFrontmatter extends Record<string, unknown>>(source: Compatible): { frontmatter: TFrontmatter; strippedSource: string; };