Every extension
detailsSummary
The title line of a toggle.
Adding it
import { createEditor, document, paragraph, text, detailsSummary } from '@matrajs/core'
const editor = createEditor({
extensions: [document, paragraph, text, detailsSummary],
element: document.querySelector('#editor'),
})
There is no separate package · detailsSummary is already in @matrajs/core, and an extension you do not import is not in your bundle. document, paragraph and text are the floor every document needs.
HTML
-
Parses
summary -
Renders
summary