ProseMirror / prosemirror-markdown

ProseMirror Markdown integration
https://prosemirror.net
MIT License
344 stars 81 forks source link

Added reference to MarkdownIt typings #93

Closed m-gallesio closed 1 year ago

m-gallesio commented 1 year ago

Added a reference to @types/markdown-it from DefinitelyTyped, replacing the types marked as FIXME and slightly adapting references to Token.children to account for its nullability.

marijnh commented 1 year ago

Thanks!

I'm pretty sure inline and image nodes always have children, so you could use ! there instead of run-time constructs.

m-gallesio commented 1 year ago

Should be done.

marijnh commented 1 year ago

Merged!