Skip to content

Bug: Styling format should be removed from the whitespace #6526

@demonzmahmood

Description

@demonzmahmood

Hello ,
There an issue that I found out after I copy paste from Microsoft word.
If you apply a styling to a whitespace, it results with asterisk **** or ~~~~ in the markdown.

Lexical version: 0.17.0

The current behavior

Screen Shot 2024-08-19 at 9 31 41 PM Screen Shot 2024-08-19 at 9 31 52 PM

The expected behavior

Screen Shot 2024-08-19 at 9 32 07 PM

Impact of fix

I am new to lexical, and I am having a hard time to fix the issue for a company. Is there a solution such as Markdown Transformer to add it to the array of transformers ?

export const PLAYGROUND_TRANSFORMERS: Array<Transformer> = [
  HR,
  ...ELEMENT_TRANSFORMERS,
  ...TEXT_FORMAT_TRANSFORMERS,
  ...TEXT_MATCH_TRANSFORMERS
];

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions