@canner/slate-icon-codeblock
A slate icon for creating code blocks
Last updated 2 years ago by chilijung .
MIT · Original npm · Tarball · package.json
$ cnpm install @canner/slate-icon-codeblock 
SYNC missed versions from official npm registry.

@canner/slate-icon-codeBlock

npm version

Icon:

import CodeBlock from "@canner/slate-icon-codeBlock";

Plugin:

import { CodeBlockPlugin } from "@canner/slate-icon-codeBlock";

Also you'll need to add these two plugins to make code blocks work:

import EditPrism from "slate-prism";
import EditCode from "slate-edit-code";

plugins = [
  EditPrism({
    onlyIn: node => node.type === "code_block",
    getSyntax: node => node.data.get("syntax")
  }),
  EditCode({
    onlyIn: node => node.type === "code_block"
  })
];

Current Tags

  • 1.5.0                                ...           latest (2 years ago)

15 Versions

  • 1.5.0                                ...           2 years ago
  • 1.4.4                                ...           2 years ago
  • 1.4.3                                ...           2 years ago
  • 1.4.3-alpha.0                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.9                                ...           2 years ago
  • 1.2.8                                ...           3 years ago
  • 1.2.7                                ...           3 years ago
  • 1.2.6                                ...           3 years ago
  • 1.2.5                                ...           3 years ago
  • 1.2.3                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.2                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |