Every extension
horizontalRule
Parses hr · renders hr.
Adding it
import { createEditor, document, paragraph, text, horizontalRule } from '@matrajs/core'
const editor = createEditor({
extensions: [document, paragraph, text, horizontalRule],
element: document.querySelector('#editor'),
})
There is no separate package · horizontalRule 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.
Commands
-
editor.commands.insertHorizontalRule()
HTML
-
Parses
hr -
Renders
hr