markdown-it-anchor@9.2.0.patch 822 B

1234567891011121314151617
  1. diff --git a/types/index.d.ts b/types/index.d.ts
  2. index 40c25c0be1add8b0fc2c51489c25a423dbc49d2c..807bc1b0e434d660c6a298b1dee1c87935bfac86 100644
  3. --- a/types/index.d.ts
  4. +++ b/types/index.d.ts
  5. @@ -1,10 +1,8 @@
  6. import MarkdownIt from 'markdown-it';
  7. -import { default as MarkdownItToken } from 'markdown-it/lib/token.mjs';
  8. -import { default as MarkdownItState} from 'markdown-it/lib/rules_core/state_core.mjs';
  9. +import { default as Token } from 'markdown-it/lib/token.mjs';
  10. +import { default as State } from 'markdown-it/lib/rules_core/state_core.mjs';
  11. declare namespace anchor {
  12. - export type Token = MarkdownItToken
  13. - export type State = MarkdownItState
  14. export type RenderHref = (slug: string, state: State) => string;
  15. export type RenderAttrs = (slug: string, state: State) => Record<string, string | number>;