Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown does not interpret combo styles correctly #5750

Open
hunttis opened this issue Oct 24, 2024 · 0 comments
Open

Markdown does not interpret combo styles correctly #5750

hunttis opened this issue Oct 24, 2024 · 0 comments
Labels

Comments

@hunttis
Copy link

hunttis commented Oct 24, 2024

Description
Markdown such as ***bold****italic* is interpreted as bold**italic where bold and italic is applied to the whole string instead of the correct interpretation where the first part is bolded and the second is italic like so: bolditalic

Screenshot

Screenshot 2024-10-24 at 12 08 59

Sandbox
https://www.slatejs.org/examples/markdown-preview

Steps
To reproduce the behavior:

  1. Go to the Slate Markdown Preview
  2. Add the following text to the preview: ***bold****italic*
  3. Note that the latter part is ignored, unless a space is input between the tags. This is not exactly the issue we're having, but I think it relates to our issue, where combostyles are interpreted wrong.

Expectation
That the above input would produce bolditalic

Environment

  • Slate Version: 0.110.2
  • Operating System: Bug noticed on macOS Sequoia
  • Browser: At least Chrome and Safari

Context
Unfortunately I can't share our code, but if you have a problem reproducing this, I can try and find time to make a minimal project where this happens.

@hunttis hunttis added the bug label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant