Skip to content

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

Open
@ayumitamai97

Description

@ayumitamai97

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:

Expected behavior

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

Example:

Actual behavior

The linked email address is cut off at the first character

Example:

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingplannedThis issue is being planned in iteration

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions