Skip to content

Markdown generated by react-rte does not render properly when loaded back into it #127

@mplis-jetsetter

Description

@mplis-jetsetter

Steps to reproduce on demo site:

  1. Switch output to Markdown
  2. Type a few words into the editor (e.g. "foo bar baz")
  3. Highlight all text and click either italics button in toolbar
    • Rich text editor should show "foo bar baz"
    • Markdown editor should show "_foo bar baz_"
  4. Highlight middle word (e.g. "bar") and click italics button again
    • Rich text editor should show "foo bar baz"
    • Markdown editor should show "_foo _bar_ baz_"
  5. Copy generated markdown and refresh page
  6. Switch output to Markdown and paste into markdown editor
    • Rich text editor shows "foo _bar baz_"

The steps above show a similar issue for strikethrough styling, though not for bold.

edit: I realized that you don't necessarily have to de-style text in the middle of the string to reproduce this bug. De-styling text at the end of the string will also cause this bug, though de-styling text at the beginning does not. For example, "foo_ bar baz_" renders properly in the editor, but "_foo bar _baz" does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions