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

[Bug] inline-code produces wrong markdown #1639

Open
2 tasks done
eliakocher opened this issue Jan 23, 2025 · 0 comments
Open
2 tasks done

[Bug] inline-code produces wrong markdown #1639

eliakocher opened this issue Jan 23, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@eliakocher
Copy link

eliakocher commented Jan 23, 2025

Initial checklist

  • I agree to follow the code of conduct
  • I searched issues and discussions and couldn’t find anything (or linked relevant results below)

Affected packages and versions

7.6.1

Link to runnable example

No response

Steps to reproduce

This can be tested in the Milkdown playground.

  1. Enter some text without whitespaces for example "InlineCodeWithBoldAndItalicText`"
  2. select the text and transform it in inline code
  3. select a word and make it bold or italic --> the produced markdown is wrong, bold and italic is missing
  4. edit the markdown --> in the editor, the `code` characters are visible, this is unexpected

example markdown:

`InlineCodeWith``Bold``And``Italic``Text`

Expected behavior

the markdown should be generated correctly with the bold and italic formatting:

`InlineCodeWith` **`Bold`** `And` *`Italic`* `Text`

editing the markdown should not change the editor in an unexpected way

Actual behavior

In the generated markdown the text formatting is missing but the code is splitted in chunks:

`InlineCodeWith``Bold``And``Italic``Text`

when you use text with whitespaces and select a word, it works correctly, for example "Inline Code With Bold And Italic Text"
when you use text without whitespaces, the produced markdown is wrong

Screenshot:
Image

Runtime

Chrome

OS

macOS

Build and bundle tools

No response

@eliakocher eliakocher added the bug Something isn't working label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants