Skip to content

Commit 06d937e

Browse files
authored
docs: fix variable names for lexical markdown conversion (#11963)
1 parent 8e93ad8 commit 06d937e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rich-text/converting-markdown.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
// Your richtext data here
2222
const data: SerializedEditorState = {}
2323

24-
const html = convertLexicalToMarkdown({
24+
const markdown = convertLexicalToMarkdown({
2525
data,
2626
editorConfig: await editorConfigFactory.default({
2727
config, // <= make sure you have access to your Payload Config
@@ -101,7 +101,7 @@ import {
101101
editorConfigFactory,
102102
} from '@payloadcms/richtext-lexical'
103103

104-
const html = convertMarkdownToLexical({
104+
const lexicalJSON = convertMarkdownToLexical({
105105
editorConfig: await editorConfigFactory.default({
106106
config, // <= make sure you have access to your Payload Config
107107
}),

0 commit comments

Comments
 (0)