Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@tracoco/slate-icon-code

haymant6MIT1.5.0

A slate icon for code

readme

@tracoco/slate-icon-code

npm version

Icon

import Code from "@tracoco/slate-icon-code";

Props

  • type: Mark type name. Default: CODE

Plugin

import { CodePlugin } from "@tracoco/slate-icon-code";

// this will add render method for this mark, and also support hot key for bold.
const plugins = [CodePlugin(options)];

Hot key

<kbd>CMD</kbd>+<kbd>`</kbd>

Options

  • type: Mark type name. Default: CODE
  • tagName: Rendered tagName in this plugin. Default <code/>