Replies: 2 comments
-
Hey! Reluctant to write documentation about the Those will not use the DocumentRenderer, but rather use default Markdoc and MDX rendering tools, respectively. The current
|
Beta Was this translation helpful? Give feedback.
-
Hey, could someone give me an example of how I'd use DocumentRender please? I think it's what I'm looking for (regardless of what's coming soon). I want to be able to add tailwind classes to elements like <p> and <em> etc within the document field. |
Beta Was this translation helpful? Give feedback.
-
DocumentRenderer
outlined https://docsmill.dev/npm/@keystatic/[email protected]#/renderer.DocumentRendererProps shows that there are three props:document
an array of Elementrenderers.inline
inlinerenderers.block
block};
componentBlocks
ComponentBlocks (since this isn't linked, i imagine it's this https://docsmill.dev/npm/@keystatic/[email protected]#/.ComponentBlock ?)document
i know, but what are these extra props for, how i can use them, are there any existing examples?fyi, this docmill site regularly crashes firefox on linux saying something on the page is taking too long.
Beta Was this translation helpful? Give feedback.
All reactions