Skip to content

Commit

Permalink
Add more docs to types
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed May 31, 2021
1 parent 5cde392 commit be0952e
Show file tree
Hide file tree
Showing 8 changed files with 229 additions and 71 deletions.
10 changes: 5 additions & 5 deletions packages/micromark-factory-destination/readme.md
Expand Up @@ -77,11 +77,11 @@ There is no default export.
* `effects` (`Effects`) — Context
* `ok` (`State`) — State switched to when successful
* `nok` (`State`) — State switched to when not successful
* `type` (`Type`) — Token type for whole (`<a>` or `b`)
* `literalType` (`Type`) — Token type when enclosed (`<a>`)
* `literalMarkerType` (`Type`) — Token type for enclosing (`<` and `>`)
* `rawType` (`Type`) — Token type when not enclosed (`b`)
* `stringType` (`Type`) — Token type for the URI (`a` or `b`)
* `type` (`string`) — Token type for whole (`<a>` or `b`)
* `literalType` (`string`) — Token type when enclosed (`<a>`)
* `literalMarkerType` (`string`) — Token type for enclosing (`<` and `>`)
* `rawType` (`string`) — Token type when not enclosed (`b`)
* `stringType` (`string`) — Token type for the URI (`a` or `b`)
* `max` (`number`, default: `Infinity`) — Max depth of nested parens

###### Returns
Expand Down
6 changes: 3 additions & 3 deletions packages/micromark-factory-label/readme.md
Expand Up @@ -77,9 +77,9 @@ Note that labels in markdown are capped at 999 characters in the string.
* `effects` (`Effects`) — Context
* `ok` (`State`) — State switched to when successful
* `nok` (`State`) — State switched to when not successful
* `type` (`Type`) — Token type for whole (`[a]`)
* `markerType` (`Type`) — Token type for the markers (`[` and `]`)
* `stringType` (`Type`) — Token type for the identifier (`a`)
* `type` (`string`) — Token type for whole (`[a]`)
* `markerType` (`string`) — Token type for the markers (`[` and `]`)
* `stringType` (`string`) — Token type for the identifier (`a`)

###### Returns

Expand Down
2 changes: 1 addition & 1 deletion packages/micromark-factory-space/readme.md
Expand Up @@ -78,7 +78,7 @@ Note that there is no `nok` parameter:

* `effects` (`Effects`) — Context
* `ok` (`State`) — State switched to when successful
* `type` (`Type`) — Token type for whole (`' \t'`)
* `type` (`string`) — Token type for whole (`' \t'`)
* `max` (`number`, default: `Infinity`) — Max size of whitespace

###### Returns
Expand Down
7 changes: 4 additions & 3 deletions packages/micromark-factory-title/readme.md
Expand Up @@ -78,9 +78,10 @@ There is no default export.
* `effects` (`Effects`) — Context
* `ok` (`State`) — State switched to when successful
* `nok` (`State`) — State switched to when not successful
* `type` (`Type`) — Token type for whole (`"a"`, `'b'`, `(c)`)
* `markerType` (`Type`) — Token type for the markers (`"`, `'`, `(`, and `)`)
* `stringType` (`Type`) — Token type for the value (`a`)
* `type` (`string`) — Token type for whole (`"a"`, `'b'`, `(c)`)
* `markerType` (`string`) — Token type for the markers (`"`, `'`, `(`, and
`)`)
* `stringType` (`string`) — Token type for the value (`a`)

###### Returns

Expand Down

0 comments on commit be0952e

Please sign in to comment.