This commit changes the way content is handled in the Keystatic package. It introduces rendering the content to HTML in the Keystatic client rather than in the content renderer component. This simplifies the rendering processing and better utilises the properties of the Markdoc library.
4 lines
154 B
TypeScript
4 lines
154 B
TypeScript
export function KeystaticContentRenderer(props: { content: unknown }) {
|
|
return <div dangerouslySetInnerHTML={{ __html: props.content as string }} />;
|
|
}
|