Skip to content

Commit

Permalink
Add contentTypeDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 9, 2021
1 parent 92f1913 commit 0ed6e00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/micromark-util-symbol/constants.js
Expand Up @@ -19,6 +19,7 @@ export const constants = {
characterReferenceHexadecimalSizeMax: 6, // `�`.
characterReferenceNamedSizeMax: 31, // `&CounterClockwiseContourIntegral;`.
codeFencedSequenceSizeMin: 3, // At least 3 ticks or tildes are needed.
contentTypeDocument: 'document',
contentTypeFlow: 'flow',
contentTypeContent: 'content',
contentTypeString: 'string',
Expand Down
1 change: 1 addition & 0 deletions packages/micromark-util-symbol/types.js
Expand Up @@ -443,6 +443,7 @@ export const types = {
listItemValue: 'listItemValue',

// Internal types used for subtokenizers, compiled away
chunkDocument: 'chunkDocument',
chunkContent: 'chunkContent',
chunkFlow: 'chunkFlow',
chunkText: 'chunkText',
Expand Down
2 changes: 1 addition & 1 deletion packages/micromark-util-types/index.js
Expand Up @@ -16,7 +16,7 @@
* Chunks are used because strings are more efficient storage that character
* codes, but limited in what they can represent.
*
* @typedef {'flow'|'content'|'text'|'string'} ContentType
* @typedef {'document'|'flow'|'content'|'text'|'string'} ContentType
* Enumeration of the content types.
*
* Technically `document` is also a content type, which includes containers
Expand Down

0 comments on commit 0ed6e00

Please sign in to comment.