pngwn / MDsveX

A markdown preprocessor for Svelte.
https://mdsvex.pngwn.io
MIT License
2.36k stars 102 forks source link

Infer the settings type when using unified plugins with settings #596

Closed TheOnlyTails closed 4 months ago

TheOnlyTails commented 6 months ago

This enables TypeScript to autocomplete the types of settings passed to unified plugins like so:

mdsvex({
    rehypePlugins: [[rehypeExternalLinks, { target: "_blank" }]]
})
changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: 95ab82b6b4babe6a9ddcb6b76b1800492237b66e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------ | ----- | | mdsvex | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

pngwn commented 4 months ago

Sorry for the delay! Released now https://github.com/pngwn/MDsveX/releases/tag/mdsvex%400.11.1