Every extension
footnote
The note itself: blocks, under the id its marker carries.
Adding it
import { createEditor, document, paragraph, text, footnote } from '@matrajs/core'
const editor = createEditor({
extensions: [document, paragraph, text, footnote],
element: document.querySelector('#editor'),
})
There is no separate package · footnote 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.
Attributes
-
id
HTML
-
Parses
li[data-footnote] -
Renders
li