prosemirror-flat-list
Version:
Powerful list support for ProseMirror
19 lines (16 loc) • 332 B
text/typescript
import { Plugin } from 'prosemirror-state'
import { createListNodeView } from '../node-view'
/**
* Handle the list node rendering.
*
* @public @group Plugins
*/
export function createListRenderingPlugin(): Plugin {
return new Plugin({
props: {
nodeViews: {
list: createListNodeView,
},
},
})
}