Closed linonetwo closed 6 years ago
I add border to code block, seems that "enter" will add a new code block instead of a code line.
OK, seems plugin is completely not working with slate@0.37 There are lots of API breaking change, I will take a look into it, and submit a PR if I can.
@Soreine @SamyPesse I've made it worked. https://github.com/GitbookIO/slate-edit-code/pull/46
Thanks a lot :)
Closing due to the close of PR https://github.com/GitbookIO/slate-edit-code/pull/46#issuecomment-422760482
I may publish another npm package likes slate-code-block
or so from my forked version since it's Apache License 2.0?
Yes you can :)
https://tldrlegal.com/license/apache-license-2.0-(apache-2.0)
@linonetwo did you ever get around to publishing somewhere? just starting down the road of updating all the slate plugin forks. thanks!
@cdunn I've published it as https://www.npmjs.com/package/slate-code-block.
Thought there are some breaking changes in slate 0.40, I will adapt to that soon.
Don't work in local development, try to reproduce in an online environment but there is another bug. https://stackblitz.com/edit/react-fh7kbo?file=index.js