Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

slate-code and syntax highlighting  #53

Description

@tommhuth

I'm following the example for slate-code but no highlighting occurs, and the following warnings are reported in the console:

As of slate@0.46, the `leaves` property of Text nodes has been removed. Instead, each text node contains a string of text and a unique set of marks and leaves are unnecessary.
As of slate@0.47 the `decoration.mark` property has been changed to `decoration.type` and `decoration.data` directly. 

Can't find anything in the docs restricting the plugin to a specific version of Slate, or am I missing something? I guess the API for Slate is still subject to sudden changes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions