Skip to main content

Horizontal Rule

Use this plugin to render a <hr> HTML tag.

Type three dashes (---) or three underscores and a space (___ ) at the beginning of a new line and it will magically transform to a horizontal rule.

Installation#

npm install @udecode/plate-horizontal-rule
npm install @udecode/plate-horizontal-rule-ui
npm install @udecode/plate-autoformat

Usage#

Live Editor
Result
SyntaxError: Unexpected token (1:8)
1 : return ()
            ^

Source Code#