Skip to content

Bug: The Playground with Page settings freezes when switching to Markdown/HTML mode #8443

@levensta

Description

@levensta

Lexical version: 0.44.0

Steps To Reproduce

  1. Apply the Page size or orientation settings
  2. Switch to Markdown mode or HTML mode
Screen.Recording.2026-05-01.at.17.46.28.mov

Link to code example: https://playground.lexical.dev/#doc=H4sIAAAAAAAAE6VQPWvDMBD9L4-OqlGoSYq2Lp0DHksH1b7YAkVnzudQN-i_FzkppFtJp3tP3PvQnUFdUJZGvRLcGcKsZbZDiJ1Qgnv7I3k36IJQq4ETXJpjNDiwHL3CAQYhdZQUzhroMhIcRi--Fz8OMDiRTKtwY6D0qa9Xpb3QRpdYJMj3xPT02HLS8n6bdKfXfz3WE__-8UM5efFuSOexkKOXPqSpwA9W5SOcrWqDSAe9Qgn98IOVxxVlA5ZASf2lD0YWFR9K4OofvkqFlxo552wQ_aSNP1EHt9ntdtt6u7H2-WlrMPEsbdndR7_0wnPqbkvDVnVdWeRvOnCqm0ICAAA

The current behavior

The app is freezing

Image

The expected behavior

The app shouldn't freeze

Impact of fix

I'm not sure what should happen when switching to Markdown, but for HTML mode, I think it would be right to export the page settings to a <meta> tag. For example:

<meta name="lexical-page" content="size=A4; orientation=portrait; margin=20mm">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions