Update markdownlint-micromark to version 0.1.11 (includes newer version of micromark-extension-directive).

This commit is contained in:
David Anson 2024-09-19 21:42:45 -07:00
parent 57cd055fd1
commit 92a786c5e9
3 changed files with 123 additions and 122 deletions

21
micromark/types.d.ts vendored
View file

@ -4,16 +4,19 @@
// - Unwillingness to treat "katex" as one of bundledPackages
//
// 1. npm install
// 2. Comment-out micromark-util-types/ParseContext in node_modules/micromark-extension-gfm-footnote/index.d.ts
// 2. Comment-out micromark-util-types/ParseContext in micromark/node_modules/micromark-extension-gfm-footnote/index.d.ts
// 3. npm run types
// 4. Remove "import { KatexOptions as KatexOptions_2 } from 'katex';" in micromark.d.cts
// 5. Replace "KatexOptions_2" with "Object" in micromark.d.cts
// 6. Append "declare module 'micromark-util-types' { interface TokenTypeMap { ... } }" in micromark.d.cts from:
// - node_modules/micromark-extension-directive/index.d.ts
// - node_modules/micromark-extension-gfm-autolink-literal/index.d.ts
// - node_modules/micromark-extension-gfm-footnote/index.d.ts
// - node_modules/micromark-extension-gfm-table/index.d.ts
// - node_modules/micromark-extension-math/index.d.ts
// 4. Remove "import type { KatexOptions } from 'katex';" in micromark/micromark.d.cts
// 5. Replace "KatexOptions" with "Object" in micromark/micromark.d.cts
// 6. Append "declare module 'micromark-util-types' { interface TokenTypeMap { ... } }" in micromark/micromark.d.cts from:
// - micromark/node_modules/micromark-extension-directive/index.d.ts
// - micromark/node_modules/micromark-extension-gfm-autolink-literal/index.d.ts
// - micromark/node_modules/micromark-extension-gfm-footnote/index.d.ts
// - micromark/node_modules/micromark-extension-gfm-table/index.d.ts
// - micromark/node_modules/micromark-extension-math/index.d.ts
// 7. Update version number in package.json and stage changes
// 8. Test: npm run build, npm pack, npm install ./micromark/markdownlint-micromark-0.1.11.tgz, npm run ci, verify types like gfmFootnote* in getReferenceLinkImageData(...)
// 9. Publish: git clean -dfx, npm install, npm run build, npm publish ., git push
export type { directive, directiveHtml } from "micromark-extension-directive";
export type { gfmAutolinkLiteral, gfmAutolinkLiteralHtml } from "micromark-extension-gfm-autolink-literal";