Skip to content

Code block formatting causing syntax highlight to be lost #4520

@R2works

Description

@R2works

Description

The code block applies the format but does not reapply the CodeSyntaxLeaf syntax highlighting.

Image

Reproduction URL

https://platejs.org/docs/code-block

Reproduction steps

1. Navigate to code block
2. Select a language that uses the format button (JSON).
2. Click the format button.

Plate version

Latest?

Slate React version

Latest?

Screenshots

Logs

Browsers

Firefox

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions