Rewrite Rulesbase/newline-to-linebreak

base/newline-to-linebreak

Collapse newline to the explicit linebreak command.

Rewrite patterns#

  1. \newline\\

Examples#

Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.

newline between equation lines#

Before

x_1 + y_1 = z_1 \newline x_2 + y_2 = z_2

After this rule

x_1 + y_1 = z_1 \\ x_2 + y_2 = z_2

Rendering verified with the declared packages.

Same family#

Disable this rule#

TransformEngine(profile="corpus", disable_rules=["base/newline-to-linebreak"])
new TransformEngine({ profile: 'corpus', disableRules: ['base/newline-to-linebreak'] })

Open in Playground