Skip to content

Highlight code in preview #229

@MauroVevy

Description

@MauroVevy

Why do I see highlighted code in the editor, while the code in the preview is plain?

Code

import "@uiw/react-markdown-editor/markdown-editor.css";
import "@uiw/react-markdown-preview/markdown.css";

[...]

<MarkdownEditor
	value={value}
	onChange={(value, viewUpdate) => {
		setValue(value);
	}}

	renderPreview={() => (
		<MarkdownEditor.Markdown
			source={value}

		/>
	)}
/>

Result
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions