website icon indicating copy to clipboard operation
website copied to clipboard

[Bug]selection with multiple lines convert to not multiple but one list item by bullet/ordered-list menu button

Open HexMox opened this issue 2 years ago • 0 comments

Initial checklist

Affected packages and versions

@milkdown/preset-commonmark

Link to runnable example

No response

Steps to reproduce

https://milkdown.dev/playground

why not using wrapInList instead of wrapIn in @milkdown/preset-commonmark

import { wrapInList } from "@milkdown/prose/schema-list";
{
commands: (nodeType) => [
      createCmd(WrapInBulletList, () => wrapInList(nodeType)),
]
}

Expected behavior

image

Actual behavior

image

Runtime

Chrome

OS

macOS

Build and bundle tools

No response

HexMox avatar Nov 30 '23 07:11 HexMox