Horizontal Rule Plugin
The HorizontalRulePlugin adds horizontal rule (divider) support with a toolbar button and Markdown-style input rule.

import { HorizontalRulePlugin } from '@notectl/core';
new HorizontalRulePlugin()Configuration
Section titled “Configuration”interface HorizontalRuleConfig { /** Render separator after toolbar item. */ readonly separatorAfter?: boolean;}Commands
Section titled “Commands”| Command | Description | Returns |
|---|---|---|
insertHorizontalRule | Insert a horizontal rule followed by a new paragraph | boolean |
editor.executeCommand('insertHorizontalRule');The command inserts the <hr> and automatically creates a new paragraph below it, so the cursor has a place to continue typing.
Input Rules
Section titled “Input Rules”| Pattern | Result |
|---|---|
--- (three or more dashes + space) | Horizontal rule |
Node Spec
Section titled “Node Spec”| Type | HTML Tag | Description |
|---|---|---|
horizontal_rule | <hr> | Void block (no editable content) |
The horizontal rule is a void block — it has no text content and cannot be edited. It acts purely as a visual divider between content sections.