LittleSound / LittleSound/milkdown-plugin-image-picker

Should this work with gfm?

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11
Forks
0
PR merge metrics
No merged PRs in 30d

Description

I have it setup like so:

```js
.use(nord.override(imagePickerView))
.use(gfm.replace(image, imagePickerPreset()({ uploader })))
```

But I see nothing in the editor and no errors.

I tried this:

```js
.use(
commonmark.replace(image, imagePickerPreset()({ uploader }))
)
.use(gfm)
```

Which also didn't work, and threw this error:

```
Uncaught (in promise) RangeError: Adding different instances of a keyed plugin (MILKDOWN_IMAGE_INPUT$)
at eval (index.js:221:228)
at Array.forEach ()
at new Configuration (index.js:221:172)
at EditorState.create (index.js:256:41)
at eval (index.es.js:107:8090)
at async eval (index.es.js:107:12570)
at async Promise.all (index 40)
at async Re.eval [as create] (index.es.js:107:12469)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the two configurations shown with gfm, commonmark, nord.override, image, and imagePickerPreset. Start with the keyed-plugin error for MILKDOWN_IMAGE_INPUT$ and verify whether the image picker appears in the editor. Done means establishing the supported GFM setup or documenting the incompatibility and its cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.