Skip to content

Bug with inline code using backticks #1970

@olaurendeau

Description

@olaurendeau

Describe the bug

Image

When creating inline code with backticks the conversion work fine when doing :

  1. backtick
  2. writing code
  3. backtick
  4. Conversion to inline code highlight.

But if you don't respect this order, the backticks are not removed and the first letter of your code is dropped, for example with

  1. backtick
  2. backtick
  3. move back between the two with arrow left
  4. write code
  5. move out of code block with arrow right
  6. conversion to inline code with space

To Reproduce
Here is a video showing the issue on the blocknotejs playground : https://www.loom.com/share/52096cb8f6194725b9e61c6a412439ca

Misc

  • Node version:
  • Package manager:
  • Browser:
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

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