@aicayzer/inkkit
v0.3.3
Published
A preserving Markdown editor for offline web views and the web
Readme
Inkkit
A Markdown editor for web pages and for apps that host a web view. People edit formatted text, and your app saves the Markdown as it was written: an unedited document is saved unchanged, and an edit rewrites only the blocks it touches.
Get started
npm install @aicayzer/inkkitimport { InkKitEditor } from '@aicayzer/inkkit'
import '@aicayzer/inkkit/style.css'
const editor = await InkKitEditor.mount(document.getElementById('editor')!, {
changed() {},
error(error) {
console.error(error.code, error.message)
},
})
editor.loadDocument({
documentId: 'note',
generation: 1,
format: 'md',
text: '# Hello\n\nStart writing.\n',
})
const { text } = editor.snapshot(1)Documentation
inkkit.cyzr.me covers how Inkkit works, compatibility, integration guides and the API reference.
