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] Email link's href is wrong #1144

Open
2 tasks done
ayumitamai97 opened this issue Oct 19, 2023 · 0 comments
Open
2 tasks done

[Bug] Email link's href is wrong #1144

ayumitamai97 opened this issue Oct 19, 2023 · 0 comments
Assignees
Labels
bug Something isn't working planned This issue is being planned in iteration

Comments

@ayumitamai97
Copy link

ayumitamai97 commented Oct 19, 2023

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

@milkdown/preset-gfm

Link to runnable example

Milkdown Playground https://milkdown.dev/playground

Steps to reproduce

  • Enable GFM
  • Input an email address directly to the editor (do not copy & paste)

Example:

test@example.com

Expected behavior

The link text and the linked email address should be the same

Example:

[test@example.com](test@example.com)

Actual behavior

The linked email address is cut off at the first character

Example:

[test@example.com](test@example.c)

The text is wrapped with <> at first, and after I put one character after the dot ., it's converted to this syntax [](). Once it's converted to [](), the linked email address inside () is no longer updated.

Screen.Recording.2023-10-19.at.21.48.48.mov

Runtime

Chrome

OS

macOS

Build and bundle tools

Vite

@ayumitamai97 ayumitamai97 added the bug Something isn't working label Oct 19, 2023
@Saul-Mirone Saul-Mirone added the planned This issue is being planned in iteration label Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working planned This issue is being planned in iteration
Projects
None yet
Development

No branches or pull requests

2 participants