1.2.10 • Published 6 years ago
@bmsterling/slate-icon-code v1.2.10
@canner/slate-icon-code
Icon
import Code from '@canner/slate-icon-code';
Props
- type: Mark type name. Default:
CODE
Plugin
import {CodePlugin} from '@canner/slate-icon-code';
// this will add render method for this mark, and also support hot key for bold.
const plugins = [
CodePlugin(options)
]
Hot key
CMD+`
Options
- type: Mark type name. Default:
CODE
- tagName: Rendered tagName in this plugin. Default
<code/>