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

Missing `wrapper` property in `LinkAfterHeaderPermalinkOptions` type #116

Closed chris-dura closed 2 years ago

chris-dura commented 2 years ago

ES Lint is complaining about wrapper not existing...

Argument of type '{ class: string; symbol: string; assistiveText: (title: string) => string; visuallyHiddenClass: string; wrapper: string[]; renderAttrs: (slug: string) => { title: string; }; }' is not assignable to parameter of type 'LinkAfterHeaderPermalinkOptions'.
  Object literal may only specify known properties, and 'wrapper' does not exist in type 'LinkAfterHeaderPermalinkOptions'.ts(2345)
valeriangalliat commented 2 years ago

Good catch. Fixed with 8.6.4!