1.5.0 • Published 5 years ago

@tracoco/slate-icon-strikethrough v1.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

@tracoco/slate-icon-strikethrough

npm version

Icon

import Strikethrough from "@tracoco/slate-icon-strikethrough";

Props

  • type: Mark type name. Default: STRIKETHROUGH

Plugin

import { StrikeThroughPlugin } from "@tracoco/slate-icon-strikethrough";

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

Hot key

Ctrl+Opt+d

Options

  • type: Mark type name. Default: STRIKETHROUGH
  • tagName: Rendered tagName in this plugin. Default <s/>