Skip to main content

Forced Layout

Allows you to enforce document structure. For example, you can require that the first line is an H1.

  • createNormalizeTypesPlugin
  • createTrailingBlockPlugin

Installation#

npm install @udecode/plate-normalizers
npm install @udecode/plate-trailing-block

Usage#

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

Source Code#