{children}
, - h2: ({ children }) =>{children}
, - h3: ({ children }) =>{children}
, - h4: ({ children }) =>{children}
, - p: ({ children }) =>{children}
, - ul: ({ children }) =>- {children}
- {children}
{children}, - a: ({ href, children }) => ( - - {children} - - ), - img: ({ src, alt }) => { - // Transform relative paths to use the API route - let imageSrc = typeof src === "string" ? src : ""; - if (imageSrc && !imageSrc.startsWith("http") && !imageSrc.startsWith("/")) { - imageSrc = `/api/playbooks/${id}/${imageSrc}`; - } - return ( - // eslint-disable-next-line @next/next/no-img-element -
{children};
- }
- return (
-
- {children}
-
- );
- },
- pre: ({ children }) => (
- {children}
- ),
- hr: () => , - table: ({ children }) =>