Every extension

footnoteRef

Node 0 kB gzipped

The marker in the text.

It carries an id and nothing else. Its number is a decoration computed from where it stands, so moving a paragraph renumbers every note without a single change to the document, and two people looking at the same document see the same numbers. The element is empty in HTML; the number is drawn by `footnotesCSS` from the decoration's attribute.

Adding it

import { createEditor, document, paragraph, text, footnoteRef } from '@matrajs/core'

const editor = createEditor({
  extensions: [document, paragraph, text, footnoteRef],
  element: document.querySelector('#editor'),
})

There is no separate package · footnoteRef 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

HTML

← All 81 extensions

Edit this page on GitHub