sanity-plugin-markdown
9.0.159.0.16
README.md~
README.mdModified+3−2
Index: package/README.md
===================================================================
--- package/README.md
+++ package/README.md
@@ -101,8 +101,9 @@
```ts
// studio.config.ts
import {markdownSchema} from 'sanity-plugin-markdown'
+
import {CustomMarkdownInput} from './CustomMarkdownInput'
export default defineConfig({
// ... rest of the config
@@ -133,12 +134,12 @@
Then use these to create a custom editor:
```tsx
-// MarkdownInputCustomPreview.tsx
-import {MarkdownInput, MarkdownInputProps} from 'sanity-plugin-markdown'
import DOMPurify from 'dompurify'
import {marked} from 'marked'
+// MarkdownInputCustomPreview.tsx
+import {MarkdownInput, MarkdownInputProps} from 'sanity-plugin-markdown'
export function CustomMarkdownInput(props) {
const reactMdeProps: MarkdownInputProps['reactMdeProps'] = useMemo(() => {
return {