import Code from '@canner/slate-icon-code';
- type: Mark type name. Default:
CODE
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)
]
CMD+`
- type: Mark type name. Default:
CODE
- tagName: Rendered tagName in this plugin. Default
<code/>