Skip to content

Commit e74b6ce

Browse files
committed
upgrade to renoun 8.3.0
1 parent 526720c commit e74b6ce

File tree

3 files changed

+28
-30
lines changed

3 files changed

+28
-30
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
"react-dom": "19.0.0",
5252
"react-element-to-jsx-string": "17.0.0",
5353
"rehype-mdx-import-media": "^1.2.0",
54-
"renoun": "8.2.0",
54+
"renoun": "8.3.0",
5555
"restyle": "3.1.2",
56-
"tailwind-merge": "2.6.0",
56+
"tailwind-merge": "3.0.1",
5757
"tailwindcss-animate": "1.0.7",
5858
"tm-themes": "1.9.8",
5959
"ts-dot-prop": "2.1.4",

pnpm-lock.yaml

+21-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/mdx-components.tsx

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ComponentPropsWithoutRef, ReactNode } from "react"
2-
import type { CodeBlockProps, CodeInlineProps } from "renoun/components"
2+
import type { CodeBlockProps } from "renoun/components"
33
import type { MDXComponents } from "renoun/mdx"
44
import Image from "next/image"
55
import Link from "next/link"
@@ -10,7 +10,7 @@ import {
1010
AccordionTrigger as BaseAccordionTrigger,
1111
} from "@/components/ui/accordion"
1212
import { ExternalLinkIcon } from "lucide-react"
13-
import { CodeBlock, CodeInline } from "renoun/components"
13+
import { CodeBlock, CodeInline, parseCodeProps } from "renoun/components"
1414

1515
import { DataTableBuilder } from "./components/data-table-builder"
1616
import MermaidWrapper from "./components/mermaid-wrapper"
@@ -108,13 +108,12 @@ export function useMDXComponents() {
108108
</div>
109109
</section>
110110
),
111+
111112
// Inline code
112-
// adding the children prop as workaround (?)
113-
code: (props: CodeInlineProps & { children: string }) => {
113+
code: (props) => {
114114
return (
115115
<CodeInline
116-
value={props.children}
117-
//language={props.language}
116+
{...parseCodeProps(props)}
118117
allowErrors
119118
css={{
120119
backgroundColor: "hsl(var(--secondary))",

0 commit comments

Comments
 (0)