Milkdown / milkdown

🍼 Plugin driven WYSIWYG markdown editor framework.
https://milkdown.dev
MIT License
8.99k stars 411 forks source link

[Bug] Cannot input link #1562

Closed bsuooo closed 1 week ago

bsuooo commented 1 week ago

Initial checklist

Affected packages and versions

"@milkdown/vue": "^7.5.0"

Link to runnable example

No response

Steps to reproduce

When I input [link]() in the editor, it is not transformed into . Instead, the output displays as [link](). I am not sure if the issue is caused by the . However, if I set ctx.set(defaultValueCtx, '[link]()') during initialization, it displays correctly as .

I would like to know the correct way to input a link

Expected behavior

image image

Actual behavior

null

Runtime

Chrome

OS

macOS

Build and bundle tools

No response

quank123wip commented 1 week ago

This bug has existed since 7.4.0, I found the last working version is 7.3.2. Need more time to find out how to fix it.

quank123wip commented 1 week ago

After a little digg'in, I think this may caused by extracting plugin-automd out of preset-commonmark. You should just use plugin-automd then you got it. I think it's better to make plugin-automd shipped with crepe.

bsuooo commented 1 week ago

After a little digg'in, I think this may caused by extracting plugin-automd out of preset-commonmark. You should just use plugin-automd then you got it. I think it's better to make plugin-automd shipped with crepe.

its works, thank you