Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Feb 8, 2025
1 parent b414d5b commit 7022c0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/fern-docs/ui/src/mdx/bundlers/next-mdx-remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import remarkGfm from "remark-gfm";
import remarkMath from "remark-math";
import remarkSmartypants from "remark-smartypants";
import { rehypeFiles } from "../plugins/rehype-files";
import { rehypeLinks } from "../plugins/rehype-links";
import { rehypeExtractAsides } from "../plugins/rehypeExtractAsides";
import { rehypeFernCode } from "../plugins/rehypeFernCode";
import { rehypeFernComponents } from "../plugins/rehypeFernComponents";
Expand All @@ -31,7 +32,7 @@ import type { FernSerializeMdxOptions } from "../types";
type SerializeOptions = NonNullable<Parameters<typeof serialize>[1]>;

function withDefaultMdxOptions(
{ options = {}, replaceSrc }: FernSerializeMdxOptions = {},
{ options = {}, replaceSrc, replaceHref }: FernSerializeMdxOptions = {},
frontmatter: FernDocs.Frontmatter
): SerializeOptions["mdxOptions"] {
const remarkRehypeOptions = {
Expand Down Expand Up @@ -60,6 +61,7 @@ function withDefaultMdxOptions(
rehypeSqueezeParagraphs,
rehypeMdxClassStyle,
[rehypeFiles, { replaceSrc }],
[rehypeLinks, { replaceHref }],
rehypeAcornErrorBoundary,
rehypeSlug,
rehypeKatex,
Expand Down

0 comments on commit 7022c0f

Please sign in to comment.