mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Update markdownlint-micromark to version 0.1.12 (exports labelEnd, additional types, and adds custom TokenTypes).
This commit is contained in:
parent
fea5d886b7
commit
36aaebbf44
4 changed files with 22 additions and 5 deletions
|
@ -10,3 +10,5 @@ export { math } from "micromark-extension-math";
|
|||
export { parse } from "micromark";
|
||||
export { postprocess } from "micromark";
|
||||
export { preprocess } from "micromark";
|
||||
// micromark-core-commonmark is not a dev/dependency because this instance must match what's used by micromark
|
||||
export { labelEnd } from "micromark-core-commonmark";
|
||||
|
|
|
@ -333,7 +333,7 @@ declare type CompileOptions_2 = CompileOptions
|
|||
/**
|
||||
* An object describing how to parse a markdown construct.
|
||||
*/
|
||||
declare type Construct = {
|
||||
export declare type Construct = {
|
||||
/**
|
||||
* Set up a state machine to handle character codes streaming in.
|
||||
*/
|
||||
|
@ -1200,7 +1200,7 @@ context: TokenizeContext
|
|||
* @returns
|
||||
* Next state.
|
||||
*/
|
||||
declare type State = (code: Code) => State | undefined
|
||||
export declare type State = (code: Code) => State | undefined
|
||||
|
||||
/**
|
||||
* A token: a span of chunks.
|
||||
|
@ -1490,7 +1490,7 @@ declare interface TokenizeContext {
|
|||
* @returns
|
||||
* First state.
|
||||
*/
|
||||
declare type Tokenizer = (
|
||||
export declare type Tokenizer = (
|
||||
this: TokenizeContext,
|
||||
effects: Effects,
|
||||
ok: State,
|
||||
|
@ -1747,3 +1747,12 @@ export declare interface TokenTypeMap {
|
|||
mathTextPadding: 'mathTextPadding'
|
||||
mathTextSequence: 'mathTextSequence'
|
||||
}
|
||||
|
||||
// Source: Custom types generated by markdownlint in getEvents
|
||||
|
||||
export declare interface TokenTypeMap {
|
||||
undefinedReference: 'undefinedReference'
|
||||
undefinedReferenceCollapsed: 'undefinedReferenceCollapsed'
|
||||
undefinedReferenceFull: 'undefinedReferenceFull'
|
||||
undefinedReferenceShortcut: 'undefinedReferenceShortcut'
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "markdownlint-micromark",
|
||||
"version": "0.1.11",
|
||||
"version": "0.1.12",
|
||||
"description": "A trivial package that re-exports some micromark functionality as a CommonJS module",
|
||||
"type": "commonjs",
|
||||
"exports": "./micromark.cjs",
|
||||
|
|
8
micromark/types.d.ts
vendored
8
micromark/types.d.ts
vendored
|
@ -14,6 +14,12 @@
|
|||
// - 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
|
||||
// - export declare interface TokenTypeMap {
|
||||
// undefinedReference: 'undefinedReference'
|
||||
// undefinedReferenceCollapsed: 'undefinedReferenceCollapsed'
|
||||
// undefinedReferenceFull: 'undefinedReferenceFull'
|
||||
// undefinedReferenceShortcut: 'undefinedReferenceShortcut'
|
||||
// }
|
||||
// 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
|
||||
|
@ -25,4 +31,4 @@ export type { gfmTable, gfmTableHtml } from "micromark-extension-gfm-table";
|
|||
export type { math, mathHtml } from "micromark-extension-math";
|
||||
export type { compile, parse, postprocess, preprocess } from "micromark";
|
||||
|
||||
export type { CompileData, Event, ParseOptions, Token, TokenType, TokenTypeMap } from "micromark-util-types";
|
||||
export type { CompileData, Construct, Event, ParseOptions, State, Token, TokenType, TokenTypeMap, Tokenizer } from "micromark-util-types";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue