prosemirror-markdown: markdown-it v15 support and npm release

Could prosemirror-markdown add support for markdown-it v15 and publish a corresponding npm release?

We use prosemirror-markdown in @stackoverflow/stacks-editor and are upgrading to markdown-it 15.0.3. The current prosemirror-markdown 1.13.9 release still depends on markdown-it ^14.0.0 and @types/markdown-it ^14.0.0.

markdown-it v15 bundles its own TypeScript declarations and no longer exports internal paths such as markdown-it/lib/token.mjs. Using its tokenizer with the current prosemirror-markdown declarations produces incompatible MarkdownIt/Token types, including string-versus-number token attribute differences.

An upstream release with native v15 types would let us use the standard npm package instead of maintaining a downstream fork. Is this upgrade planned, or is there a preferred way to help move it forward?

Migration guide: markdown-it/docs/migration/migration_v15.md at 15.0.3 · markdown-it/markdown-it · GitHub

I tried the upstream issue tracker first, but its GitHub sign-in currently returns HTTP 500, so I’m asking here instead.

The issue with such an upgrade is that, since some markdown-it types are part of our interface, it might be a breaking change for people that are using version 14.

One possible direction would be to try and support both 14 and 15. It looks like a type like Token is only available via the /lib/token.mjs import style that’s no longer available in 15—but since we’re only importing that as a type, no a value, I guess we could just add a sloppy @ts-ignore to suppress the TS error when 14 is installed.

People using 14 will get slightly degraded types, because the markdown-it types used in the prosemirror-markdown interface won’t be available, but I guess that’s not a very big deal.

Does this patch look reasonable to you?