Content rendered twice if layout is preceded by other markup

Description

If in the storage format of a page the layout markup is preceded by some other markup, for example a paragraph, or text, for example a newline character, Viewport renders the content twice.

For example, a page with the following body:

is rendered like this:

The Confluence editor doesn't allow content outside of the layout, but apparently there are cases where the storage format ends up that way.

Environment

None

Assignee

Unassigned

Reporter

Sync User [K15t]

Labels

Participants

None

Deployment

None

Time tracking

6h

Components

Sprint

None

Fix versions

Configure