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
Live Editor
Result
SyntaxError: Unexpected token (1:8)
1 : return ()
            ^