valeriangalliat / markdown-it-anchor

A markdown-it plugin that adds an `id` attribute to headings and optionally permalinks.
The Unlicense
291 stars 72 forks source link

fix: fix markdown-it types #131

Closed meteorlxy closed 3 months ago

meteorlxy commented 3 months ago

This PR fixes the error:

types/index.d.ts:69:29 - error TS2709: Cannot use namespace 'MarkdownIt' as a type.

69 declare function anchor(md: MarkdownIt, opts?: anchor.AnchorOptions): void;
valeriangalliat commented 3 months ago

Thanks!! Published with 9.0.1