aomao_plugin-hr
TypeScript icon, indicating that this package has built-in type declarations

2.7.37 • Public • Published

aomao_plugin-hr

分割线插件

安装

$ yarn add aomao_plugin-hr

添加到引擎

import Engine, { EngineInterface } from 'aomao_engine';
import Hr , { HrComponent } from 'aomao_plugin-hr';

new Engine(...,{ plugins:[Hr] , cards:[HrComponent]})

可选项

快捷键

默认快捷键 mod+shift+e

hotkey?:string;//默认mod+shift+e

//使用配置
new Engine(...,{
    config:{
        "hr":{
            //修改快捷键
            hotkey:"快捷键"
        }
    }
 })

Markdown

默认支持 markdown,传入false关闭

Hr 插件 markdown 语法为---

markdown?: boolean;//默认开启,false 关闭
//使用配置
new Engine(...,{
    config:{
        "hr":{
            //关闭markdown
            markdown:false
        }
    }
 })

命令

engine.command.execute('hr');

Readme

Keywords

none

Package Sidebar

Install

npm i aomao_plugin-hr

Weekly Downloads

2

Version

2.7.37

License

MIT

Unpacked Size

30.7 kB

Total Files

10

Last publish

Collaborators

  • eyea