Skip to content
Discussion options

You must be logged in to vote

Welcome @mturoci 👋

Everything seems to work perfectly. However, it requires the ugly ts-ignore since toMarkdownExtensions key is not recognized.

Order matters in typescript, you are referencing data properties before remark has been added to the unified typings, that may be part of it.
Remark does register those data props
https://github.com/remarkjs/remark/blob/ed7b185d304adaf5aa80fc78a912603a5cd6e85a/packages/remark-parse/index.d.ts#L44
https://github.com/remarkjs/remark/blob/ed7b185d304adaf5aa80fc78a912603a5cd6e85a/packages/remark-stringify/index.d.ts#L43

You could create a plugin as gfm itself does https://github.com/remarkjs/remark-gfm/blob/main/lib/index.js
Note how the plugin def…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@mturoci
Comment options

@ChristianMurphy
Comment options

@ChristianMurphy
Comment options

@mturoci
Comment options

Answer selected by mturoci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants