0.2.1 • Published 1 year ago

solidjs-md-editor v0.2.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

solidjs-md-editor

这是一个基于solidjs的markdown编辑器,也可以兼容原生js

Getting Started

pnpm i solidjs-md-editor

原生js用法

import { Editor } from 'solidjs-md-editor'

const editor = Editor({
  target: document.querySelector('#app'),
  onChange(v) {
    console.log(v)
  },
  handelPreview(v) {
    return customTrans(v)
  },
  height: '600px',
  theme: 'dark',
})

editor.setTheme('light') // 切换主题只有light跟dark 默认是light
editor.setVal('初始化数据') // 设置值
0.2.1

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago