diff --git a/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js b/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js new file mode 100644 index 0000000000000000000000000000000000000000..c21b215a13dceec48de3aab89e7070c1534ae86a --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js @@ -0,0 +1,63 @@ +/** + * @import {Info, State} from 'mdast-util-to-markdown' + * @import {ImageReference, Parents} from 'mdast' + */ + +imageReference.peek = imageReferencePeek + +/** + * @param {ImageReference} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function imageReference(node, _, state, info) { + const type = node.referenceType + const exit = state.enter('imageReference') + let subexit = state.enter('label') + const tracker = state.createTracker(info) + let value = tracker.move('![') + const alt = state.safe(node.alt, { + before: value, + after: ']', + ...tracker.current() + }) + value += tracker.move(alt + '][') + + subexit() + // Hide the fact that we’re in phrasing, because escapes don’t work. + const stack = state.stack + state.stack = [] + subexit = state.enter('reference') + // Note: for proper tracking, we should reset the output positions when we end + // up making a `shortcut` reference, because then there is no brace output. + // Practically, in that case, there is no content, so it doesn’t matter that + // we’ve tracked one too many characters. + const reference = state.safe(state.associationId(node), { + before: value, + after: ']', + ...tracker.current() + }) + subexit() + state.stack = stack + exit() + + if (type === 'full' || !alt || alt !== reference) { + value += tracker.move(reference + ']') + } else if (type === 'shortcut') { + // Remove the unwanted `[`. + value = value.slice(0, -1) + } else { + value += tracker.move(']') + } + + return value +} + +/** + * @returns {string} + */ +function imageReferencePeek() { + return '!' +} diff --git a/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts b/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..b1b1056caa315322dc444dfd720fa52b9c856962 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts @@ -0,0 +1,21 @@ +/** + * @param {Image} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function image(node: Image, _: Parents | undefined, state: State, info: Info): string; +export namespace image { + export { imagePeek as peek }; +} +import type { Image } from 'mdast'; +import type { Parents } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +import type { Info } from 'mdast-util-to-markdown'; +/** + * @returns {string} + */ +declare function imagePeek(): string; +export {}; +//# sourceMappingURL=image.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map b/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..cbac4a3b2b7a4e0f01a1ffa5425b0946476422ec --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["image.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AACH,4BANW,KAAK,KACL,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CA4DlB;;;;2BAxEgC,OAAO;6BAAP,OAAO;2BADV,wBAAwB;0BAAxB,wBAAwB;AA2EtD;;GAEG;AACH,8BAFa,MAAM,CAIlB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/image.js b/node_modules/mdast-util-to-markdown/lib/handle/image.js new file mode 100644 index 0000000000000000000000000000000000000000..ba5c5c9291fbe99e1ff8a0088b63a9b3718bca3d --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/image.js @@ -0,0 +1,82 @@ +/** + * @import {Info, State} from 'mdast-util-to-markdown' + * @import {Image, Parents} from 'mdast' + */ + +import {checkQuote} from '../util/check-quote.js' + +image.peek = imagePeek + +/** + * @param {Image} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function image(node, _, state, info) { + const quote = checkQuote(state) + const suffix = quote === '"' ? 'Quote' : 'Apostrophe' + const exit = state.enter('image') + let subexit = state.enter('label') + const tracker = state.createTracker(info) + let value = tracker.move('![') + value += tracker.move( + state.safe(node.alt, {before: value, after: ']', ...tracker.current()}) + ) + value += tracker.move('](') + + subexit() + + if ( + // If there’s no url but there is a title… + (!node.url && node.title) || + // If there are control characters or whitespace. + /[\0- \u007F]/.test(node.url) + ) { + subexit = state.enter('destinationLiteral') + value += tracker.move('<') + value += tracker.move( + state.safe(node.url, {before: value, after: '>', ...tracker.current()}) + ) + value += tracker.move('>') + } else { + // No whitespace, raw is prettier. + subexit = state.enter('destinationRaw') + value += tracker.move( + state.safe(node.url, { + before: value, + after: node.title ? ' ' : ')', + ...tracker.current() + }) + ) + } + + subexit() + + if (node.title) { + subexit = state.enter(`title${suffix}`) + value += tracker.move(' ' + quote) + value += tracker.move( + state.safe(node.title, { + before: value, + after: quote, + ...tracker.current() + }) + ) + value += tracker.move(quote) + subexit() + } + + value += tracker.move(')') + exit() + + return value +} + +/** + * @returns {string} + */ +function imagePeek() { + return '!' +} diff --git a/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts b/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..1ceeeb2358b7f12df5f529ed90d85670d1682c04 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts @@ -0,0 +1,42 @@ +export namespace handle { + export { blockquote }; + export { hardBreak as break }; + export { code }; + export { definition }; + export { emphasis }; + export { hardBreak }; + export { heading }; + export { html }; + export { image }; + export { imageReference }; + export { inlineCode }; + export { link }; + export { linkReference }; + export { list }; + export { listItem }; + export { paragraph }; + export { root }; + export { strong }; + export { text }; + export { thematicBreak }; +} +import { blockquote } from './blockquote.js'; +import { hardBreak } from './break.js'; +import { code } from './code.js'; +import { definition } from './definition.js'; +import { emphasis } from './emphasis.js'; +import { heading } from './heading.js'; +import { html } from './html.js'; +import { image } from './image.js'; +import { imageReference } from './image-reference.js'; +import { inlineCode } from './inline-code.js'; +import { link } from './link.js'; +import { linkReference } from './link-reference.js'; +import { list } from './list.js'; +import { listItem } from './list-item.js'; +import { paragraph } from './paragraph.js'; +import { root } from './root.js'; +import { strong } from './strong.js'; +import { text } from './text.js'; +import { thematicBreak } from './thematic-break.js'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts.map b/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..ef61a4f421fe6a856d0d503903c11669b3baf364 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;2BAAyB,iBAAiB;0BAClB,YAAY;qBACjB,WAAW;2BACL,iBAAiB;yBACnB,eAAe;wBAChB,cAAc;qBACjB,WAAW;sBACV,YAAY;+BACH,sBAAsB;2BAC1B,kBAAkB;qBACxB,WAAW;8BACF,qBAAqB;qBAC9B,WAAW;yBACP,gBAAgB;0BACf,gBAAgB;qBACrB,WAAW;uBACT,aAAa;qBACf,WAAW;8BACF,qBAAqB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/index.js b/node_modules/mdast-util-to-markdown/lib/handle/index.js new file mode 100644 index 0000000000000000000000000000000000000000..f03686a3d5d22cd9ce666cef2eb05a4700f30337 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/index.js @@ -0,0 +1,45 @@ +import {blockquote} from './blockquote.js' +import {hardBreak} from './break.js' +import {code} from './code.js' +import {definition} from './definition.js' +import {emphasis} from './emphasis.js' +import {heading} from './heading.js' +import {html} from './html.js' +import {image} from './image.js' +import {imageReference} from './image-reference.js' +import {inlineCode} from './inline-code.js' +import {link} from './link.js' +import {linkReference} from './link-reference.js' +import {list} from './list.js' +import {listItem} from './list-item.js' +import {paragraph} from './paragraph.js' +import {root} from './root.js' +import {strong} from './strong.js' +import {text} from './text.js' +import {thematicBreak} from './thematic-break.js' + +/** + * Default (CommonMark) handlers. + */ +export const handle = { + blockquote, + break: hardBreak, + code, + definition, + emphasis, + hardBreak, + heading, + html, + image, + imageReference, + inlineCode, + link, + linkReference, + list, + listItem, + paragraph, + root, + strong, + text, + thematicBreak +} diff --git a/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts b/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..5a4862db809f3c4b30982fb99bf8b3d00c20f597 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts @@ -0,0 +1,19 @@ +/** + * @param {InlineCode} node + * @param {Parents | undefined} _ + * @param {State} state + * @returns {string} + */ +export function inlineCode(node: InlineCode, _: Parents | undefined, state: State): string; +export namespace inlineCode { + export { inlineCodePeek as peek }; +} +import type { InlineCode } from 'mdast'; +import type { Parents } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +/** + * @returns {string} + */ +declare function inlineCodePeek(): string; +export {}; +//# sourceMappingURL=inline-code.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map b/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..894b8008203ec20f14f1421eca93c88f5ad4623b --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"inline-code.d.ts","sourceRoot":"","sources":["inline-code.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,iCALW,UAAU,KACV,OAAO,GAAG,SAAS,SACnB,KAAK,GACH,MAAM,CAyDlB;;;;gCAlEqC,OAAO;6BAAP,OAAO;2BADrB,wBAAwB;AAqEhD;;GAEG;AACH,mCAFa,MAAM,CAIlB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js b/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js new file mode 100644 index 0000000000000000000000000000000000000000..f2e99d5106908e80831febb6493327942ca416cd --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js @@ -0,0 +1,76 @@ +/** + * @import {State} from 'mdast-util-to-markdown' + * @import {InlineCode, Parents} from 'mdast' + */ + +inlineCode.peek = inlineCodePeek + +/** + * @param {InlineCode} node + * @param {Parents | undefined} _ + * @param {State} state + * @returns {string} + */ +export function inlineCode(node, _, state) { + let value = node.value || '' + let sequence = '`' + let index = -1 + + // If there is a single grave accent on its own in the code, use a fence of + // two. + // If there are two in a row, use one. + while (new RegExp('(^|[^`])' + sequence + '([^`]|$)').test(value)) { + sequence += '`' + } + + // If this is not just spaces or eols (tabs don’t count), and either the + // first or last character are a space, eol, or tick, then pad with spaces. + if ( + /[^ \r\n]/.test(value) && + ((/^[ \r\n]/.test(value) && /[ \r\n]$/.test(value)) || /^`|`$/.test(value)) + ) { + value = ' ' + value + ' ' + } + + // We have a potential problem: certain characters after eols could result in + // blocks being seen. + // For example, if someone injected the string `'\n# b'`, then that would + // result in an ATX heading. + // We can’t escape characters in `inlineCode`, but because eols are + // transformed to spaces when going from markdown to HTML anyway, we can swap + // them out. + while (++index < state.unsafe.length) { + const pattern = state.unsafe[index] + const expression = state.compilePattern(pattern) + /** @type {RegExpExecArray | null} */ + let match + + // Only look for `atBreak`s. + // Btw: note that `atBreak` patterns will always start the regex at LF or + // CR. + if (!pattern.atBreak) continue + + while ((match = expression.exec(value))) { + let position = match.index + + // Support CRLF (patterns only look for one of the characters). + if ( + value.charCodeAt(position) === 10 /* `\n` */ && + value.charCodeAt(position - 1) === 13 /* `\r` */ + ) { + position-- + } + + value = value.slice(0, position) + ' ' + value.slice(match.index + 1) + } + } + + return sequence + value + sequence +} + +/** + * @returns {string} + */ +function inlineCodePeek() { + return '`' +} diff --git a/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts b/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9e3994cf87eefb8a822f8222499e52408a991aad --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts @@ -0,0 +1,21 @@ +/** + * @param {LinkReference} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function linkReference(node: LinkReference, _: Parents | undefined, state: State, info: Info): string; +export namespace linkReference { + export { linkReferencePeek as peek }; +} +import type { LinkReference } from 'mdast'; +import type { Parents } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +import type { Info } from 'mdast-util-to-markdown'; +/** + * @returns {string} + */ +declare function linkReferencePeek(): string; +export {}; +//# sourceMappingURL=link-reference.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map b/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..79b2f880ee7d83e3a501097ab6595ef98cc32fa3 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"link-reference.d.ts","sourceRoot":"","sources":["link-reference.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,oCANW,aAAa,KACb,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CA2ClB;;;;mCArDwC,OAAO;6BAAP,OAAO;2BADlB,wBAAwB;0BAAxB,wBAAwB;AAwDtD;;GAEG;AACH,sCAFa,MAAM,CAIlB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js b/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js new file mode 100644 index 0000000000000000000000000000000000000000..234d4797dd3e70bdcf9c08af11f741d6d1e27803 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js @@ -0,0 +1,63 @@ +/** + * @import {Info, State} from 'mdast-util-to-markdown' + * @import {LinkReference, Parents} from 'mdast' + */ + +linkReference.peek = linkReferencePeek + +/** + * @param {LinkReference} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function linkReference(node, _, state, info) { + const type = node.referenceType + const exit = state.enter('linkReference') + let subexit = state.enter('label') + const tracker = state.createTracker(info) + let value = tracker.move('[') + const text = state.containerPhrasing(node, { + before: value, + after: ']', + ...tracker.current() + }) + value += tracker.move(text + '][') + + subexit() + // Hide the fact that we’re in phrasing, because escapes don’t work. + const stack = state.stack + state.stack = [] + subexit = state.enter('reference') + // Note: for proper tracking, we should reset the output positions when we end + // up making a `shortcut` reference, because then there is no brace output. + // Practically, in that case, there is no content, so it doesn’t matter that + // we’ve tracked one too many characters. + const reference = state.safe(state.associationId(node), { + before: value, + after: ']', + ...tracker.current() + }) + subexit() + state.stack = stack + exit() + + if (type === 'full' || !text || text !== reference) { + value += tracker.move(reference + ']') + } else if (type === 'shortcut') { + // Remove the unwanted `[`. + value = value.slice(0, -1) + } else { + value += tracker.move(']') + } + + return value +} + +/** + * @returns {string} + */ +function linkReferencePeek() { + return '[' +} diff --git a/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts b/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e5a1c6b1559ea7e42cc2db43312cf4990d759aab --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts @@ -0,0 +1,24 @@ +/** + * @param {Link} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function link(node: Link, _: Parents | undefined, state: State, info: Info): string; +export namespace link { + export { linkPeek as peek }; +} +import type { Link } from 'mdast'; +import type { Parents } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +import type { Info } from 'mdast-util-to-markdown'; +/** + * @param {Link} node + * @param {Parents | undefined} _ + * @param {State} state + * @returns {string} + */ +declare function linkPeek(node: Link, _: Parents | undefined, state: State): string; +export {}; +//# sourceMappingURL=link.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map b/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..68a4fcfb5f195b71b4325953fdf8540155aea85a --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["link.js"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,2BANW,IAAI,KACJ,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CAuFlB;;;;0BArG+B,OAAO;6BAAP,OAAO;2BADT,wBAAwB;0BAAxB,wBAAwB;AAwGtD;;;;;GAKG;AACH,gCALW,IAAI,KACJ,OAAO,GAAG,SAAS,SACnB,KAAK,GACH,MAAM,CAIlB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/link.js b/node_modules/mdast-util-to-markdown/lib/handle/link.js new file mode 100644 index 0000000000000000000000000000000000000000..69bd69e8c839b58924a7fa2bc9a3922299687c9a --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/link.js @@ -0,0 +1,114 @@ +/** + * @import {Info, State} from 'mdast-util-to-markdown' + * @import {Link, Parents} from 'mdast' + * @import {Exit} from '../types.js' + */ + +import {checkQuote} from '../util/check-quote.js' +import {formatLinkAsAutolink} from '../util/format-link-as-autolink.js' + +link.peek = linkPeek + +/** + * @param {Link} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function link(node, _, state, info) { + const quote = checkQuote(state) + const suffix = quote === '"' ? 'Quote' : 'Apostrophe' + const tracker = state.createTracker(info) + /** @type {Exit} */ + let exit + /** @type {Exit} */ + let subexit + + if (formatLinkAsAutolink(node, state)) { + // Hide the fact that we’re in phrasing, because escapes don’t work. + const stack = state.stack + state.stack = [] + exit = state.enter('autolink') + let value = tracker.move('<') + value += tracker.move( + state.containerPhrasing(node, { + before: value, + after: '>', + ...tracker.current() + }) + ) + value += tracker.move('>') + exit() + state.stack = stack + return value + } + + exit = state.enter('link') + subexit = state.enter('label') + let value = tracker.move('[') + value += tracker.move( + state.containerPhrasing(node, { + before: value, + after: '](', + ...tracker.current() + }) + ) + value += tracker.move('](') + subexit() + + if ( + // If there’s no url but there is a title… + (!node.url && node.title) || + // If there are control characters or whitespace. + /[\0- \u007F]/.test(node.url) + ) { + subexit = state.enter('destinationLiteral') + value += tracker.move('<') + value += tracker.move( + state.safe(node.url, {before: value, after: '>', ...tracker.current()}) + ) + value += tracker.move('>') + } else { + // No whitespace, raw is prettier. + subexit = state.enter('destinationRaw') + value += tracker.move( + state.safe(node.url, { + before: value, + after: node.title ? ' ' : ')', + ...tracker.current() + }) + ) + } + + subexit() + + if (node.title) { + subexit = state.enter(`title${suffix}`) + value += tracker.move(' ' + quote) + value += tracker.move( + state.safe(node.title, { + before: value, + after: quote, + ...tracker.current() + }) + ) + value += tracker.move(quote) + subexit() + } + + value += tracker.move(')') + + exit() + return value +} + +/** + * @param {Link} node + * @param {Parents | undefined} _ + * @param {State} state + * @returns {string} + */ +function linkPeek(node, _, state) { + return formatLinkAsAutolink(node, state) ? '<' : '[' +} diff --git a/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts b/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9412afe9f20ff1c664017c04a0a7b482d7e67d1c --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts @@ -0,0 +1,13 @@ +/** + * @param {ListItem} node + * @param {Parents | undefined} parent + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function listItem(node: ListItem, parent: Parents | undefined, state: State, info: Info): string; +import type { ListItem } from 'mdast'; +import type { Parents } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +import type { Info } from 'mdast-util-to-markdown'; +//# sourceMappingURL=list-item.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map b/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..094523215f86652b4d0e2e5998516d093fd22b6b --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["list-item.js"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,+BANW,QAAQ,UACR,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CAgDlB;8BA3DmC,OAAO;6BAAP,OAAO;2BADR,wBAAwB;0BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/list-item.js b/node_modules/mdast-util-to-markdown/lib/handle/list-item.js new file mode 100644 index 0000000000000000000000000000000000000000..c830bbe2fa991b2db592d779c12a00bfcd11a56a --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/list-item.js @@ -0,0 +1,62 @@ +/** + * @import {Info, Map, State} from 'mdast-util-to-markdown' + * @import {ListItem, Parents} from 'mdast' + */ + +import {checkBullet} from '../util/check-bullet.js' +import {checkListItemIndent} from '../util/check-list-item-indent.js' + +/** + * @param {ListItem} node + * @param {Parents | undefined} parent + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function listItem(node, parent, state, info) { + const listItemIndent = checkListItemIndent(state) + let bullet = state.bulletCurrent || checkBullet(state) + + // Add the marker value for ordered lists. + if (parent && parent.type === 'list' && parent.ordered) { + bullet = + (typeof parent.start === 'number' && parent.start > -1 + ? parent.start + : 1) + + (state.options.incrementListMarker === false + ? 0 + : parent.children.indexOf(node)) + + bullet + } + + let size = bullet.length + 1 + + if ( + listItemIndent === 'tab' || + (listItemIndent === 'mixed' && + ((parent && parent.type === 'list' && parent.spread) || node.spread)) + ) { + size = Math.ceil(size / 4) * 4 + } + + const tracker = state.createTracker(info) + tracker.move(bullet + ' '.repeat(size - bullet.length)) + tracker.shift(size) + const exit = state.enter('listItem') + const value = state.indentLines( + state.containerFlow(node, tracker.current()), + map + ) + exit() + + return value + + /** @type {Map} */ + function map(line, index, blank) { + if (index) { + return (blank ? '' : ' '.repeat(size)) + line + } + + return (blank ? bullet : bullet + ' '.repeat(size - bullet.length)) + line + } +} diff --git a/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts b/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..ce02272b56f753014bd5e4c738db777a3f7c70c9 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts @@ -0,0 +1,13 @@ +/** + * @param {List} node + * @param {Parents | undefined} parent + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function list(node: List, parent: Parents | undefined, state: State, info: Info): string; +import type { List } from 'mdast'; +import type { Parents } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +import type { Info } from 'mdast-util-to-markdown'; +//# sourceMappingURL=list.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map b/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..b41524649fa285c717372442ce4ba00b7d9b39ac --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["list.js"],"names":[],"mappings":"AAUA;;;;;;GAMG;AACH,2BANW,IAAI,UACJ,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CAoFlB;0BAjG+B,OAAO;6BAAP,OAAO;2BADT,wBAAwB;0BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/list.js b/node_modules/mdast-util-to-markdown/lib/handle/list.js new file mode 100644 index 0000000000000000000000000000000000000000..dac924cd20e5cac137248aacb54ac07d2426d792 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/list.js @@ -0,0 +1,100 @@ +/** + * @import {Info, State} from 'mdast-util-to-markdown' + * @import {List, Parents} from 'mdast' + */ + +import {checkBullet} from '../util/check-bullet.js' +import {checkBulletOther} from '../util/check-bullet-other.js' +import {checkBulletOrdered} from '../util/check-bullet-ordered.js' +import {checkRule} from '../util/check-rule.js' + +/** + * @param {List} node + * @param {Parents | undefined} parent + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function list(node, parent, state, info) { + const exit = state.enter('list') + const bulletCurrent = state.bulletCurrent + /** @type {string} */ + let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state) + /** @type {string} */ + const bulletOther = node.ordered + ? bullet === '.' + ? ')' + : '.' + : checkBulletOther(state) + let useDifferentMarker = + parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false + + if (!node.ordered) { + const firstListItem = node.children ? node.children[0] : undefined + + // If there’s an empty first list item directly in two list items, + // we have to use a different bullet: + // + // ```markdown + // * - * + // ``` + // + // …because otherwise it would become one big thematic break. + if ( + // Bullet could be used as a thematic break marker: + (bullet === '*' || bullet === '-') && + // Empty first list item: + firstListItem && + (!firstListItem.children || !firstListItem.children[0]) && + // Directly in two other list items: + state.stack[state.stack.length - 1] === 'list' && + state.stack[state.stack.length - 2] === 'listItem' && + state.stack[state.stack.length - 3] === 'list' && + state.stack[state.stack.length - 4] === 'listItem' && + // That are each the first child. + state.indexStack[state.indexStack.length - 1] === 0 && + state.indexStack[state.indexStack.length - 2] === 0 && + state.indexStack[state.indexStack.length - 3] === 0 + ) { + useDifferentMarker = true + } + + // If there’s a thematic break at the start of the first list item, + // we have to use a different bullet: + // + // ```markdown + // * --- + // ``` + // + // …because otherwise it would become one big thematic break. + if (checkRule(state) === bullet && firstListItem) { + let index = -1 + + while (++index < node.children.length) { + const item = node.children[index] + + if ( + item && + item.type === 'listItem' && + item.children && + item.children[0] && + item.children[0].type === 'thematicBreak' + ) { + useDifferentMarker = true + break + } + } + } + } + + if (useDifferentMarker) { + bullet = bulletOther + } + + state.bulletCurrent = bullet + const value = state.containerFlow(node, info) + state.bulletLastUsed = bullet + state.bulletCurrent = bulletCurrent + exit() + return value +} diff --git a/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts b/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..d1491bb954d5b91f969ba64b4040f1d5395e64ac --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts @@ -0,0 +1,17 @@ +/** + * @import {Info, State} from 'mdast-util-to-markdown' + * @import {Paragraph, Parents} from 'mdast' + */ +/** + * @param {Paragraph} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function paragraph(node: Paragraph, _: Parents | undefined, state: State, info: Info): string; +import type { Paragraph } from 'mdast'; +import type { Parents } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +import type { Info } from 'mdast-util-to-markdown'; +//# sourceMappingURL=paragraph.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map b/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..ed2ab1c89330a045eb486074f84a8114ab44186e --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["paragraph.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AACH,gCANW,SAAS,KACT,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CASlB;+BAjBoC,OAAO;6BAAP,OAAO;2BADd,wBAAwB;0BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js b/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js new file mode 100644 index 0000000000000000000000000000000000000000..18cf6303076bf60827021378dfee7be516562f53 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js @@ -0,0 +1,20 @@ +/** + * @import {Info, State} from 'mdast-util-to-markdown' + * @import {Paragraph, Parents} from 'mdast' + */ + +/** + * @param {Paragraph} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function paragraph(node, _, state, info) { + const exit = state.enter('paragraph') + const subexit = state.enter('phrasing') + const value = state.containerPhrasing(node, info) + subexit() + exit() + return value +} diff --git a/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts b/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9f9c4b5539fda6ad85f091a306d826861ea4660b --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts @@ -0,0 +1,13 @@ +/** + * @param {Root} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function root(node: Root, _: Parents | undefined, state: State, info: Info): string; +import type { Root } from 'mdast'; +import type { Parents } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +import type { Info } from 'mdast-util-to-markdown'; +//# sourceMappingURL=root.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map b/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..f66a6a13c35a55cf73f9a7f876b3b213c6c45cce --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["root.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,2BANW,IAAI,KACJ,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CAUlB;0BApB+B,OAAO;6BAAP,OAAO;2BADT,wBAAwB;0BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/root.js b/node_modules/mdast-util-to-markdown/lib/handle/root.js new file mode 100644 index 0000000000000000000000000000000000000000..8bbc78a70f446588cd19d86843dd68c8501a18b3 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/root.js @@ -0,0 +1,23 @@ +/** + * @import {Info, State} from 'mdast-util-to-markdown' + * @import {Parents, Root} from 'mdast' + */ + +import {phrasing} from 'mdast-util-phrasing' + +/** + * @param {Root} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function root(node, _, state, info) { + // Note: `html` nodes are ambiguous. + const hasPhrasing = node.children.some(function (d) { + return phrasing(d) + }) + + const container = hasPhrasing ? state.containerPhrasing : state.containerFlow + return container.call(state, node, info) +} diff --git a/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts b/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..312617d98c2aadab76bcf937e8509953a8ae065d --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts @@ -0,0 +1,24 @@ +/** + * @param {Strong} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function strong(node: Strong, _: Parents | undefined, state: State, info: Info): string; +export namespace strong { + export { strongPeek as peek }; +} +import type { Strong } from 'mdast'; +import type { Parents } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +import type { Info } from 'mdast-util-to-markdown'; +/** + * @param {Strong} _ + * @param {Parents | undefined} _1 + * @param {State} state + * @returns {string} + */ +declare function strongPeek(_: Strong, _1: Parents | undefined, state: State): string; +export {}; +//# sourceMappingURL=strong.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map b/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..4843bda372b658d9a469286cbf68e91b9a2a203e --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"strong.d.ts","sourceRoot":"","sources":["strong.js"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,6BANW,MAAM,KACN,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CA0ClB;;;;4BAxDiC,OAAO;6BAAP,OAAO;2BADX,wBAAwB;0BAAxB,wBAAwB;AA2DtD;;;;;GAKG;AACH,+BALW,MAAM,MACN,OAAO,GAAG,SAAS,SACnB,KAAK,GACH,MAAM,CAIlB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/strong.js b/node_modules/mdast-util-to-markdown/lib/handle/strong.js new file mode 100644 index 0000000000000000000000000000000000000000..475d5f78b9373ce400c36bdbb0fe8a9374249ef1 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/strong.js @@ -0,0 +1,69 @@ +/** + * @import {Info, State} from 'mdast-util-to-markdown' + * @import {Parents, Strong} from 'mdast' + */ + +import {checkStrong} from '../util/check-strong.js' +import {encodeCharacterReference} from '../util/encode-character-reference.js' +import {encodeInfo} from '../util/encode-info.js' + +strong.peek = strongPeek + +/** + * @param {Strong} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function strong(node, _, state, info) { + const marker = checkStrong(state) + const exit = state.enter('strong') + const tracker = state.createTracker(info) + const before = tracker.move(marker + marker) + + let between = tracker.move( + state.containerPhrasing(node, { + after: marker, + before, + ...tracker.current() + }) + ) + const betweenHead = between.charCodeAt(0) + const open = encodeInfo( + info.before.charCodeAt(info.before.length - 1), + betweenHead, + marker + ) + + if (open.inside) { + between = encodeCharacterReference(betweenHead) + between.slice(1) + } + + const betweenTail = between.charCodeAt(between.length - 1) + const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker) + + if (close.inside) { + between = between.slice(0, -1) + encodeCharacterReference(betweenTail) + } + + const after = tracker.move(marker + marker) + + exit() + + state.attentionEncodeSurroundingInfo = { + after: close.outside, + before: open.outside + } + return before + between + after +} + +/** + * @param {Strong} _ + * @param {Parents | undefined} _1 + * @param {State} state + * @returns {string} + */ +function strongPeek(_, _1, state) { + return state.options.strong || '*' +} diff --git a/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts b/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9436fdedeb7a4644e7e7349adfc2de425bdd423c --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts @@ -0,0 +1,17 @@ +/** + * @import {Info, State} from 'mdast-util-to-markdown' + * @import {Parents, Text} from 'mdast' + */ +/** + * @param {Text} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function text(node: Text, _: Parents | undefined, state: State, info: Info): string; +import type { Text } from 'mdast'; +import type { Parents } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +import type { Info } from 'mdast-util-to-markdown'; +//# sourceMappingURL=text.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map b/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..03d0737c8a634999feeeb56c7cc6f453d12d1732 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["text.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AACH,2BANW,IAAI,KACJ,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CAIlB;0BAZ+B,OAAO;6BAAP,OAAO;2BADT,wBAAwB;0BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/text.js b/node_modules/mdast-util-to-markdown/lib/handle/text.js new file mode 100644 index 0000000000000000000000000000000000000000..8f463e0720741a986eab5baa22d89d993cb7ec46 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/text.js @@ -0,0 +1,15 @@ +/** + * @import {Info, State} from 'mdast-util-to-markdown' + * @import {Parents, Text} from 'mdast' + */ + +/** + * @param {Text} node + * @param {Parents | undefined} _ + * @param {State} state + * @param {Info} info + * @returns {string} + */ +export function text(node, _, state, info) { + return state.safe(node.value, info) +} diff --git a/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts b/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..4aecfd151d37f4ca6a5951eec5c5ce3c0c61b9b2 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts @@ -0,0 +1,11 @@ +/** + * @param {ThematicBreak} _ + * @param {Parents | undefined} _1 + * @param {State} state + * @returns {string} + */ +export function thematicBreak(_: ThematicBreak, _1: Parents | undefined, state: State): string; +import type { ThematicBreak } from 'mdast'; +import type { Parents } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +//# sourceMappingURL=thematic-break.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map b/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..8bd69c99f3e2e48ff07e14430fbd55fb1b8d00e8 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"thematic-break.d.ts","sourceRoot":"","sources":["thematic-break.js"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,iCALW,aAAa,MACb,OAAO,GAAG,SAAS,SACnB,KAAK,GACH,MAAM,CAQlB;mCAlBwC,OAAO;6BAAP,OAAO;2BADxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js b/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js new file mode 100644 index 0000000000000000000000000000000000000000..9707b5fab2a7712ad9f272a9e409546b16b556be --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js @@ -0,0 +1,21 @@ +/** + * @import {State} from 'mdast-util-to-markdown' + * @import {Parents, ThematicBreak} from 'mdast' + */ + +import {checkRuleRepetition} from '../util/check-rule-repetition.js' +import {checkRule} from '../util/check-rule.js' + +/** + * @param {ThematicBreak} _ + * @param {Parents | undefined} _1 + * @param {State} state + * @returns {string} + */ +export function thematicBreak(_, _1, state) { + const value = ( + checkRule(state) + (state.options.ruleSpaces ? ' ' : '') + ).repeat(checkRuleRepetition(state)) + + return state.options.ruleSpaces ? value.slice(0, -1) : value +} diff --git a/node_modules/mdast-util-to-markdown/lib/index.d.ts b/node_modules/mdast-util-to-markdown/lib/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..612aad88c0c4209e0301d64a65e1e90e2664714a --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/index.d.ts @@ -0,0 +1,14 @@ +/** + * Turn an mdast syntax tree into markdown. + * + * @param {Nodes} tree + * Tree to serialize. + * @param {Options | null | undefined} [options] + * Configuration (optional). + * @returns {string} + * Serialized markdown representing `tree`. + */ +export function toMarkdown(tree: Nodes, options?: Options | null | undefined): string; +import type { Nodes } from 'mdast'; +import type { Options } from 'mdast-util-to-markdown'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/index.d.ts.map b/node_modules/mdast-util-to-markdown/lib/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..8c1bbee4252cd578fc89c51134c44c21a43616c9 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAmBA;;;;;;;;;GASG;AACH,iCAPW,KAAK,YAEL,OAAO,GAAG,IAAI,GAAG,SAAS,GAExB,MAAM,CAoElB;2BA5FuB,OAAO;6BAD0B,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/index.js b/node_modules/mdast-util-to-markdown/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..3154b31be4cd40dee5a2e8e5e0c11d51d9c65c31 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/index.js @@ -0,0 +1,187 @@ +/** + * @import {Info, Join, Options, SafeConfig, State} from 'mdast-util-to-markdown' + * @import {Nodes} from 'mdast' + * @import {Enter, FlowParents, PhrasingParents, TrackFields} from './types.js' + */ + +import {zwitch} from 'zwitch' +import {configure} from './configure.js' +import {handle as handlers} from './handle/index.js' +import {join} from './join.js' +import {unsafe} from './unsafe.js' +import {association} from './util/association.js' +import {compilePattern} from './util/compile-pattern.js' +import {containerPhrasing} from './util/container-phrasing.js' +import {containerFlow} from './util/container-flow.js' +import {indentLines} from './util/indent-lines.js' +import {safe} from './util/safe.js' +import {track} from './util/track.js' + +/** + * Turn an mdast syntax tree into markdown. + * + * @param {Nodes} tree + * Tree to serialize. + * @param {Options | null | undefined} [options] + * Configuration (optional). + * @returns {string} + * Serialized markdown representing `tree`. + */ +export function toMarkdown(tree, options) { + const settings = options || {} + /** @type {State} */ + const state = { + associationId: association, + containerPhrasing: containerPhrasingBound, + containerFlow: containerFlowBound, + createTracker: track, + compilePattern, + enter, + // @ts-expect-error: GFM / frontmatter are typed in `mdast` but not defined + // here. + handlers: {...handlers}, + // @ts-expect-error: add `handle` in a second. + handle: undefined, + indentLines, + indexStack: [], + join: [...join], + options: {}, + safe: safeBound, + stack: [], + unsafe: [...unsafe] + } + + configure(state, settings) + + if (state.options.tightDefinitions) { + state.join.push(joinDefinition) + } + + state.handle = zwitch('type', { + invalid, + unknown, + handlers: state.handlers + }) + + let result = state.handle(tree, undefined, state, { + before: '\n', + after: '\n', + now: {line: 1, column: 1}, + lineShift: 0 + }) + + if ( + result && + result.charCodeAt(result.length - 1) !== 10 && + result.charCodeAt(result.length - 1) !== 13 + ) { + result += '\n' + } + + return result + + /** @type {Enter} */ + function enter(name) { + state.stack.push(name) + return exit + + /** + * @returns {undefined} + */ + function exit() { + state.stack.pop() + } + } +} + +/** + * @param {unknown} value + * @returns {never} + */ +function invalid(value) { + throw new Error('Cannot handle value `' + value + '`, expected node') +} + +/** + * @param {unknown} value + * @returns {never} + */ +function unknown(value) { + // Always a node. + const node = /** @type {Nodes} */ (value) + throw new Error('Cannot handle unknown node `' + node.type + '`') +} + +/** @type {Join} */ +function joinDefinition(left, right) { + // No blank line between adjacent definitions. + if (left.type === 'definition' && left.type === right.type) { + return 0 + } +} + +/** + * Serialize the children of a parent that contains phrasing children. + * + * These children will be joined flush together. + * + * @this {State} + * Info passed around about the current state. + * @param {PhrasingParents} parent + * Parent of flow nodes. + * @param {Info} info + * Info on where we are in the document we are generating. + * @returns {string} + * Serialized children, joined together. + */ +function containerPhrasingBound(parent, info) { + return containerPhrasing(parent, this, info) +} + +/** + * Serialize the children of a parent that contains flow children. + * + * These children will typically be joined by blank lines. + * What they are joined by exactly is defined by `Join` functions. + * + * @this {State} + * Info passed around about the current state. + * @param {FlowParents} parent + * Parent of flow nodes. + * @param {TrackFields} info + * Info on where we are in the document we are generating. + * @returns {string} + * Serialized children, joined by (blank) lines. + */ +function containerFlowBound(parent, info) { + return containerFlow(parent, this, info) +} + +/** + * Make a string safe for embedding in markdown constructs. + * + * In markdown, almost all punctuation characters can, in certain cases, + * result in something. + * Whether they do is highly subjective to where they happen and in what + * they happen. + * + * To solve this, `mdast-util-to-markdown` tracks: + * + * * Characters before and after something; + * * What “constructs” we are in. + * + * This information is then used by this function to escape or encode + * special characters. + * + * @this {State} + * Info passed around about the current state. + * @param {string | null | undefined} value + * Raw value to make safe. + * @param {SafeConfig} config + * Configuration. + * @returns {string} + * Serialized markdown safe for embedding. + */ +function safeBound(value, config) { + return safe(this, value, config) +} diff --git a/node_modules/mdast-util-to-markdown/lib/join.d.ts b/node_modules/mdast-util-to-markdown/lib/join.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..26785771b692e02aee5d3a1a9944d9c650504960 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/join.d.ts @@ -0,0 +1,4 @@ +/** @type {Array} */ +export const join: Array; +import type { Join } from 'mdast-util-to-markdown'; +//# sourceMappingURL=join.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/join.d.ts.map b/node_modules/mdast-util-to-markdown/lib/join.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..cd8028b8167b4a9992f4f578bcbcad391cc3c4e1 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/join.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["join.js"],"names":[],"mappings":"AAOA,0BAA0B;AAC1B,mBADW,KAAK,CAAC,IAAI,CAAC,CACY;0BAPX,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/join.js b/node_modules/mdast-util-to-markdown/lib/join.js new file mode 100644 index 0000000000000000000000000000000000000000..371addb1859dc292cfb840b7daf17f90e5f60fc6 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/join.js @@ -0,0 +1,39 @@ +/** + * @import {Join} from 'mdast-util-to-markdown' + */ + +import {formatCodeAsIndented} from './util/format-code-as-indented.js' +import {formatHeadingAsSetext} from './util/format-heading-as-setext.js' + +/** @type {Array} */ +export const join = [joinDefaults] + +/** @type {Join} */ +function joinDefaults(left, right, parent, state) { + // Indented code after list or another indented code. + if ( + right.type === 'code' && + formatCodeAsIndented(right, state) && + (left.type === 'list' || + (left.type === right.type && formatCodeAsIndented(left, state))) + ) { + return false + } + + // Join children of a list or an item. + // In which case, `parent` has a `spread` field. + if ('spread' in parent && typeof parent.spread === 'boolean') { + if ( + left.type === 'paragraph' && + // Two paragraphs. + (left.type === right.type || + right.type === 'definition' || + // Paragraph followed by a setext heading. + (right.type === 'heading' && formatHeadingAsSetext(right, state))) + ) { + return + } + + return parent.spread ? 1 : 0 + } +} diff --git a/node_modules/mdast-util-to-markdown/lib/types.d.ts b/node_modules/mdast-util-to-markdown/lib/types.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..4cf0157a1884ecde170ffdb652c48f13b61b8506 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/types.d.ts @@ -0,0 +1,965 @@ +import type { + Parents, + PhrasingContent, + TableCell, + TableRow, + Association, + Nodes +} from 'mdast' +import type {Point} from 'unist' + +/** + * Get an identifier from an association to match it to others. + * + * Associations are nodes that match to something else through an ID: + * . + * + * The `label` of an association is the string value: character escapes and + * references work, and casing is intact. + * The `identifier` is used to match one association to another: + * controversially, character escapes and references don’t work in this + * matching: `©` does not match `©`, and `\+` does not match `+`. + * + * But casing is ignored (and whitespace) is trimmed and collapsed: ` A\nb` + * matches `a b`. + * So, we do prefer the label when figuring out how we’re going to serialize: + * it has whitespace, casing, and we can ignore most useless character + * escapes and all character references. + * + * @param node + * Node that includes an association. + * @returns + * ID. + */ +export type AssociationId = (node: Association) => string + +/** + * Compile an unsafe pattern to a regex. + * + * @param info + * Pattern. + * @returns + * Regex. + */ +export type CompilePattern = (info: Unsafe) => RegExp + +/** + * Interface of registered constructs. + * + * When working on extensions that use new constructs, extend the corresponding + * interface to register its name: + * + * ```ts + * declare module 'mdast-util-to-markdown' { + * interface ConstructNameMap { + * // Register a new construct name (value is used, key should match it). + * gfmStrikethrough: 'gfmStrikethrough' + * } + * } + * ``` + */ +export interface ConstructNameMap { + /** + * Whole autolink. + * + * ```markdown + * > | and + * ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ + * ``` + */ + autolink: 'autolink' + /** + * Whole block quote. + * + * ```markdown + * > | > a + * ^^^ + * > | b + * ^ + * ``` + */ + blockquote: 'blockquote' + /** + * Whole code (indented). + * + * ```markdown + * ␠␠␠␠console.log(1) + * ^^^^^^^^^^^^^^^^^^ + * ``` + */ + codeIndented: 'codeIndented' + /** + * Whole code (fenced). + * + * ````markdown + * > | ```js + * ^^^^^ + * > | console.log(1) + * ^^^^^^^^^^^^^^ + * > | ``` + * ^^^ + * ```` + */ + codeFenced: 'codeFenced' + /** + * Code (fenced) language, when fenced with grave accents. + * + * ````markdown + * > | ```js + * ^^ + * | console.log(1) + * | ``` + * ```` + */ + codeFencedLangGraveAccent: 'codeFencedLangGraveAccent' + /** + * Code (fenced) language, when fenced with tildes. + * + * ````markdown + * > | ~~~js + * ^^ + * | console.log(1) + * | ~~~ + * ```` + */ + codeFencedLangTilde: 'codeFencedLangTilde' + /** + * Code (fenced) meta string, when fenced with grave accents. + * + * ````markdown + * > | ```js eval + * ^^^^ + * | console.log(1) + * | ``` + * ```` + */ + codeFencedMetaGraveAccent: 'codeFencedMetaGraveAccent' + /** + * Code (fenced) meta string, when fenced with tildes. + * + * ````markdown + * > | ~~~js eval + * ^^^^ + * | console.log(1) + * | ~~~ + * ```` + */ + codeFencedMetaTilde: 'codeFencedMetaTilde' + /** + * Whole definition. + * + * ```markdown + * > | [a]: b "c" + * ^^^^^^^^^^ + * ``` + */ + definition: 'definition' + /** + * Destination (literal) (occurs in definition, image, link). + * + * ```markdown + * > | [a]: "c" + * ^^^ + * > | a ![b]( "d") e + * ^^^ + * ``` + */ + destinationLiteral: 'destinationLiteral' + /** + * Destination (raw) (occurs in definition, image, link). + * + * ```markdown + * > | [a]: b "c" + * ^ + * > | a ![b](c "d") e + * ^ + * ``` + */ + destinationRaw: 'destinationRaw' + /** + * Emphasis. + * + * ```markdown + * > | *a* + * ^^^ + * ``` + */ + emphasis: 'emphasis' + /** + * Whole heading (atx). + * + * ```markdown + * > | # alpha + * ^^^^^^^ + * ``` + */ + headingAtx: 'headingAtx' + /** + * Whole heading (setext). + * + * ```markdown + * > | alpha + * ^^^^^ + * > | ===== + * ^^^^^ + * ``` + */ + headingSetext: 'headingSetext' + /** + * Whole image. + * + * ```markdown + * > | ![a](b) + * ^^^^^^^ + * > | ![c] + * ^^^^ + * ``` + */ + image: 'image' + /** + * Whole image reference. + * + * ```markdown + * > | ![a] + * ^^^^ + * ``` + */ + imageReference: 'imageReference' + /** + * Label (occurs in definitions, image reference, image, link reference, + * link). + * + * ```markdown + * > | [a]: b "c" + * ^^^ + * > | a [b] c + * ^^^ + * > | a ![b][c] d + * ^^^^ + * > | a [b](c) d + * ^^^ + * ``` + */ + label: 'label' + /** + * Whole link. + * + * ```markdown + * > | [a](b) + * ^^^^^^ + * > | [c] + * ^^^ + * ``` + */ + link: 'link' + /** + * Whole link reference. + * + * ```markdown + * > | [a] + * ^^^ + * ``` + */ + linkReference: 'linkReference' + /** + * List. + * + * ```markdown + * > | * a + * ^^^ + * > | 1. b + * ^^^^ + * ``` + */ + list: 'list' + /** + * List item. + * + * ```markdown + * > | * a + * ^^^ + * > | 1. b + * ^^^^ + * ``` + */ + listItem: 'listItem' + /** + * Paragraph. + * + * ```markdown + * > | a b + * ^^^ + * > | c. + * ^^ + * ``` + */ + paragraph: 'paragraph' + /** + * Phrasing (occurs in headings, paragraphs, etc). + * + * ```markdown + * > | a + * ^ + * ``` + */ + phrasing: 'phrasing' + /** + * Reference (occurs in image, link). + * + * ```markdown + * > | [a][] + * ^^ + * ``` + */ + reference: 'reference' + /** + * Strong. + * + * ```markdown + * > | **a** + * ^^^^^ + * ``` + */ + strong: 'strong' + /** + * Title using single quotes (occurs in definition, image, link). + * + * ```markdown + * > | [a](b 'c') + * ^^^ + * ``` + */ + titleApostrophe: 'titleApostrophe' + /** + * Title using double quotes (occurs in definition, image, link). + * + * ```markdown + * > | [a](b "c") + * ^^^ + * ``` + */ + titleQuote: 'titleQuote' +} + +/** + * Construct names for things generated by `mdast-util-to-markdown`. + * + * This is an enum of strings, each being a semantic label, useful to know when + * serializing whether we’re for example in a double (`"`) or single (`'`) + * quoted title. + */ +export type ConstructName = ConstructNameMap[keyof ConstructNameMap] + +/** + * Serialize the children of a parent that contains flow children. + * + * These children will typically be joined by blank lines. + * What they are joined by exactly is defined by `Join` functions. + * + * @param parent + * Parent of flow nodes. + * @param info + * Info on where we are in the document we are generating. + * @returns + * Serialized children, joined by (blank) lines. + */ +export type ContainerFlow = (parent: FlowParents, info: TrackFields) => string + +/** + * Serialize the children of a parent that contains phrasing children. + * + * These children will be joined flush together. + * + * @param parent + * Parent of phrasing nodes. + * @param info + * Info on where we are in the document we are generating. + * @returns + * Serialized children, joined together. + */ +export type ContainerPhrasing = (parent: PhrasingParents, info: Info) => string + +/** + * Track positional info in the output. + * + * This info isn’t used yet but such functionality will allow line wrapping, + * source maps, etc. + * + * @param info + * Info on where we are in the document we are generating. + * @returns + * Tracker. + */ +export type CreateTracker = (info: TrackFields) => Tracker + +/** + * Whether to encode things — with fields representing the surrounding of a + * whole. + */ +export interface EncodeSurrounding { + /** + * Whether to encode after. + */ + after: boolean + + /** + * Whether to encode before. + */ + before: boolean +} + +/** + * Whether to encode things — with fields representing the relationship to a + * whole. + */ +export interface EncodeSides { + /** + * Whether to encode inside. + */ + inside: boolean + + /** + * Whether to encode before. + */ + outside: boolean +} + +/** + * Enter something. + * + * @param name + * Label, more similar to a micromark event than an mdast node type. + * @returns + * Revert. + */ +export type Enter = (name: ConstructName) => Exit + +/** + * Exit something. + * + * @returns + * Nothing. + */ +export type Exit = () => undefined + +/** + * Children of flow nodes. + */ +export type FlowChildren = FlowParents extends { + children: Array +} + ? T + : never + +/** + * Parents that are not phrasing, + * or similar. + */ +export type FlowParents = Exclude< + Parents, + PhrasingContent | TableCell | TableRow +> + +/** + * Handle particular nodes. + * + * Each key is a node type, each value its corresponding handler. + */ +export type Handlers = Record + +/** + * Handle a particular node. + * + * @param node + * Expected mdast node. + * @param parent + * Parent of `node`. + * @param state + * Info passed around about the current state. + * @param Info + * Info on the surrounding of the node that is serialized. + * @returns + * Serialized markdown representing `node`. + */ +export type Handle = ( + node: any, + parent: Parents | undefined, + state: State, + Info: Info +) => string + +/** + * Pad serialized markdown. + * + * @param value + * Whole fragment of serialized markdown. + * @param map + * Map function. + * @returns + * Padded value. + */ +export type IndentLines = (value: string, map: Map) => string + +/** + * Info on the surrounding of the node that is serialized. + */ +export interface Info extends SafeFields, TrackFields {} + +/** + * How to join two blocks. + * + * “Blocks” are typically joined by one blank line. + * Sometimes it’s nicer to have them flush next to each other, yet other + * times they cannot occur together at all. + * + * Join functions receive two adjacent siblings and their parent and what + * they return defines how many blank lines to use between them. + * + * @param left + * First of two adjacent siblings. + * @param right + * Second of two adjacent siblings. + * @param parent + * Parent of the two siblings. + * @param state + * Info passed around about the current state. + * @returns + * How many blank lines to use between the siblings. + * + * Where `true` is as passing `1` and `false` means the nodes cannot be + * joined by a blank line, such as two adjacent block quotes or indented code + * after a list, in which case a comment will be injected to break them up: + * + * ```markdown + * > Quote 1 + * + * + * + * > Quote 2 + * ``` + * + * > 👉 **Note**: abusing this feature will break markdown. + * > One such example is when returning `0` for two paragraphs, which will + * > result in the text running together, and in the future to be seen as + * > one paragraph. + */ +export type Join = ( + left: FlowChildren, + right: FlowChildren, + parent: FlowParents, + state: State +) => boolean | number | null | undefined | void + +/** + * Map function to pad a single line. + * + * @param value + * A single line of serialized markdown. + * @param line + * Line number relative to the fragment. + * @param blank + * Whether the line is considered blank in markdown. + * @returns + * Padded line. + */ +export type Map = (value: string, line: number, blank: boolean) => string + +/** + * Configuration (optional). + */ +export interface Options { + /** + * Marker to use in certain cases where the primary bullet doesn’t work + * (default: `'-'` when `bullet` is `'*'`, `'*'` otherwise). + * + * Cannot be equal to `bullet`. + */ + bulletOther?: '*' | '+' | '-' | null | undefined + /** + * Marker to use for bullets of items in ordered lists (default: `'.'`). + * + * There is one case where the primary bullet for ordered items cannot be + * used: + * + * * when two ordered lists appear next to each other: `1. a\n2) b`; to + * solve + * that, `'.'` will be used when `bulletOrdered` is `')'`, and `'.'` + * otherwise + */ + bulletOrdered?: '.' | ')' | null | undefined + /** + * Marker to use for bullets of items in unordered lists (default: `'*'`). + * + * There are three cases where the primary bullet cannot be used: + * + * * when three or more list items are on their own, the last one is empty, + * and `bullet` is also a valid `rule`: `* - +`; this would turn into a + * thematic break if serialized with three primary bullets; `bulletOther` + * is used for the last item + * * when a thematic break is the first child of a list item and `bullet` is + * the same character as `rule`: `- ***`; this would turn into a single + * thematic break if serialized with primary bullets; `bulletOther` is used + * for the item + * * when two unordered lists appear next to each other: `* a\n- b`; + * `bulletOther` is used for such lists + */ + bullet?: '*' | '+' | '-' | null | undefined + /** + * Whether to add the same number of number signs (`#`) at the end of an ATX + * heading as the opening sequence (default: `false`). + */ + closeAtx?: boolean | null | undefined + /** + * Marker to use for emphasis (default: `'*'`). + */ + emphasis?: '*' | '_' | null | undefined + /** + * List of extensions to include (optional). + * + * Each `ToMarkdownExtension` is an object with the same interface as + * `Options` here. + */ + extensions?: Array | null | undefined + /** + * Whether to use fenced code always (default: `true`). + * + * The default is to use fenced code if there is a language defined, if the + * code is empty, or if it starts or ends in blank lines. + */ + fences?: boolean | null | undefined + /** + * Marker to use for fenced code (default: ``'`'``). + */ + fence?: '`' | '~' | null | undefined + /** + * Handle particular nodes (optional). + * + * Each key is a node type, each value its corresponding handler. + */ + handlers?: Partial | null | undefined + /** + * Whether to increment the counter of ordered lists items (default: `true`). + */ + incrementListMarker?: boolean | null | undefined + /** + * How to join blocks (optional). + */ + join?: Array | null | undefined + /** + * How to indent the content of list items (default: `'one'`). + * + * Either with the size of the bullet plus one space (when `'one'`), a tab + * stop (`'tab'`), or depending on the item and its parent list (`'mixed'`, + * uses `'one'` if the item and list are tight and `'tab'` otherwise). + */ + listItemIndent?: 'mixed' | 'one' | 'tab' | null | undefined + /** + * Marker to use for titles (default: `'"'`). + */ + quote?: '"' | "'" | null | undefined + /** + * Whether to always use resource links (default: `false`). + * + * The default is to use autolinks (``) when possible + * and resource links (`[text](url)`) otherwise. + */ + resourceLink?: boolean | null | undefined + /** + * Number of markers to use for thematic breaks (default: `3`). + */ + ruleRepetition?: number | null | undefined + /** + * Whether to add spaces between markers in thematic breaks (default: + * `false`). + */ + ruleSpaces?: boolean | null | undefined + /** + * Marker to use for thematic breaks (default: `'*'`). + */ + rule?: '*' | '-' | '_' | null | undefined + /** + * Whether to use setext headings when possible (default: `false`). + * + * The default is to always use ATX headings (`# heading`) instead of setext + * headings (`heading\n=======`). + * Setext headings cannot be used for empty headings or headings with a rank + * of three or more. + */ + setext?: boolean | null | undefined + /** + * Marker to use for strong (default: `'*'`). + */ + strong?: '*' | '_' | null | undefined + /** + * Whether to join definitions without a blank line (default: `false`). + * + * The default is to add blank lines between any flow (“block”) construct. + * Turning this option on is a shortcut for a join function like so: + * + * ```js + * function joinTightDefinitions(left, right) { + * if (left.type === 'definition' && right.type === 'definition') { + * return 0 + * } + * } + * ``` + */ + tightDefinitions?: boolean | null | undefined + /** + * Schemas that define when characters cannot occur (optional). + */ + unsafe?: Array | null | undefined +} + +/** + * Parent of phrasing nodes. + */ +export type PhrasingParents = Parents extends { + children: Array +} + ? PhrasingContent extends T + ? Parents + : never + : never + +/** + * Configuration for `safe` + */ +export interface SafeConfig extends SafeFields { + /** + * Extra characters that *must* be encoded (as character references) instead + * of escaped (character escapes) (optional). + * + * Only ASCII punctuation will use character escapes, so you never need to + * pass non-ASCII-punctuation here. + */ + encode?: Array | null | undefined +} + +/** + * Info on the characters that are around the current thing we are generating. + */ +export interface SafeFields { + /** + * Characters after this (guaranteed to be one, can be more). + */ + after: string + /** + * Characters before this (guaranteed to be one, can be more). + */ + before: string +} + +/** + * Make a string safe for embedding in markdown constructs. + * + * In markdown, almost all punctuation characters can, in certain cases, + * result in something. + * Whether they do is highly subjective to where they happen and in what + * they happen. + * + * To solve this, `mdast-util-to-markdown` tracks: + * + * * Characters before and after something; + * * What “constructs” we are in. + * + * This information is then used by this function to escape or encode + * special characters. + * + * @param input + * Raw value to make safe. + * @param config + * Configuration. + * @returns + * Serialized markdown safe for embedding. + */ +export type Safe = ( + input: string | null | undefined, + config: SafeConfig +) => string + +/** + * Info passed around about the current state. + */ +export interface State { + /** + * Get an identifier from an association to match it to others. + */ + associationId: AssociationId + /** + * Info on whether to encode the surrounding of *attention*. + * + * Whether attention (emphasis, strong, strikethrough) forms + * depends on the characters inside and outside them. + * The characters inside can be handled by *attention* itself. + * However the outside characters are already handled. + * Or handled afterwards. + * This field can be used to signal from *attention* that some parent + * function (practically `containerPhrasing`) has to handle the surrounding. + */ + attentionEncodeSurroundingInfo: EncodeSurrounding | undefined + /** + * List marker currently in use. + */ + bulletCurrent: string | undefined + /** + * List marker previously in use. + */ + bulletLastUsed: string | undefined + /** + * Compile an unsafe pattern to a regex. + */ + compilePattern: CompilePattern + /** + * Serialize the children of a parent that contains phrasing children. + */ + containerPhrasing: ContainerPhrasing + /** + * Serialize the children of a parent that contains flow children. + */ + containerFlow: ContainerFlow + /** + * Track positional info in the output. + */ + createTracker: CreateTracker + /** + * Enter a construct (returns a corresponding exit function). + */ + enter: Enter + /** + * Applied handlers. + */ + handlers: Handlers + /** + * Call the configured handler for the given node. + */ + handle: Handle + /** + * Pad serialized markdown. + */ + indentLines: IndentLines + /** + * Positions of child nodes in their parents. + */ + indexStack: Array + /** + * Applied join handlers. + */ + join: Array + /** + * Applied user configuration. + */ + options: Options + /** + * Serialize the children of a parent that contains flow children. + */ + safe: Safe + /** + * Stack of constructs we’re in. + */ + stack: Array + /** + * Applied unsafe patterns. + */ + unsafe: Array +} + +/** + * Get current tracked info. + * + * @returns + * Current tracked info. + */ +export type TrackCurrent = () => TrackFields + +/** + * Info on where we are in the document we are generating. + */ +export interface TrackFields { + /** + * Number of columns each line will be shifted by wrapping nodes. + */ + lineShift: number + /** + * Current point. + */ + now: Point +} + +/** + * Move past some generated markdown. + * + * @param value + * Generated markdown. + * @returns + * Given markdown. + */ +export type TrackMove = (value: string | null | undefined) => string + +/** + * Define a relative increased line shift (the typical indent for lines). + * + * @param value + * Relative increment in how much each line will be padded. + * @returns + * Nothing. + */ +export type TrackShift = (value: number) => undefined + +/** + * Track positional info in the output. + * + * This info isn’t used yet but such functionality will allow line wrapping, + * source maps, etc. + */ +export interface Tracker { + /** + * Get the current tracked info. + */ + current: TrackCurrent + /** + * Move past some generated markdown. + */ + move: TrackMove + /** + * Define an increased line shift (the typical indent for lines). + */ + shift: TrackShift +} + +/** + * Schema that defines when a character cannot occur. + */ +export interface Unsafe { + /** + * The unsafe pattern (this whole object) compiled as a regex (do not use). + * + * This is internal and must not be defined. + */ + _compiled?: RegExp | null | undefined + /** + * `character` is bad when this is after it (optional). + */ + after?: string | null | undefined + /** + * `character` is bad at a break (cannot be used together with `before`) (optional). + */ + atBreak?: boolean | null | undefined + /** + * `character` is bad when this is before it (cannot be used together with + * `atBreak`) (optional). + */ + before?: string | null | undefined + /** + * Single unsafe character. + */ + character: string + /** + * Constructs where this is bad (optional). + */ + inConstruct?: Array | ConstructName | null | undefined + /** + * Constructs where this is fine again (optional). + */ + notInConstruct?: Array | ConstructName | null | undefined +} diff --git a/node_modules/mdast-util-to-markdown/lib/types.js b/node_modules/mdast-util-to-markdown/lib/types.js new file mode 100644 index 0000000000000000000000000000000000000000..c172e67f95bf21d4668a3f572002ea2e5aeb9466 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/types.js @@ -0,0 +1,2 @@ +// Note: types exposed from `types.d.ts`. +export {} diff --git a/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts b/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..ddd270c85d40ec7b1ca76afc8e55294efd900d0b --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts @@ -0,0 +1,4 @@ +/** @type {Array} */ +export const unsafe: Array; +import type { Unsafe } from 'mdast-util-to-markdown'; +//# sourceMappingURL=unsafe.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map b/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..f39869b2a62e71a4cc05ba1fc0c48e9ae603fa20 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"unsafe.d.ts","sourceRoot":"","sources":["unsafe.js"],"names":[],"mappings":"AAqBA,4BAA4B;AAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CA4HvB;4BAhJuC,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/unsafe.js b/node_modules/mdast-util-to-markdown/lib/unsafe.js new file mode 100644 index 0000000000000000000000000000000000000000..c5c5d4a12ad91e8e15c5fcb0dedf1d376bebfeb6 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/unsafe.js @@ -0,0 +1,146 @@ +/** + * @import {ConstructName, Unsafe} from 'mdast-util-to-markdown' + */ + +/** + * List of constructs that occur in phrasing (paragraphs, headings), but cannot + * contain things like attention (emphasis, strong), images, or links. + * So they sort of cancel each other out. + * Note: could use a better name. + * + * @type {Array} + */ +const fullPhrasingSpans = [ + 'autolink', + 'destinationLiteral', + 'destinationRaw', + 'reference', + 'titleQuote', + 'titleApostrophe' +] + +/** @type {Array} */ +export const unsafe = [ + {character: '\t', after: '[\\r\\n]', inConstruct: 'phrasing'}, + {character: '\t', before: '[\\r\\n]', inConstruct: 'phrasing'}, + { + character: '\t', + inConstruct: ['codeFencedLangGraveAccent', 'codeFencedLangTilde'] + }, + { + character: '\r', + inConstruct: [ + 'codeFencedLangGraveAccent', + 'codeFencedLangTilde', + 'codeFencedMetaGraveAccent', + 'codeFencedMetaTilde', + 'destinationLiteral', + 'headingAtx' + ] + }, + { + character: '\n', + inConstruct: [ + 'codeFencedLangGraveAccent', + 'codeFencedLangTilde', + 'codeFencedMetaGraveAccent', + 'codeFencedMetaTilde', + 'destinationLiteral', + 'headingAtx' + ] + }, + {character: ' ', after: '[\\r\\n]', inConstruct: 'phrasing'}, + {character: ' ', before: '[\\r\\n]', inConstruct: 'phrasing'}, + { + character: ' ', + inConstruct: ['codeFencedLangGraveAccent', 'codeFencedLangTilde'] + }, + // An exclamation mark can start an image, if it is followed by a link or + // a link reference. + { + character: '!', + after: '\\[', + inConstruct: 'phrasing', + notInConstruct: fullPhrasingSpans + }, + // A quote can break out of a title. + {character: '"', inConstruct: 'titleQuote'}, + // A number sign could start an ATX heading if it starts a line. + {atBreak: true, character: '#'}, + {character: '#', inConstruct: 'headingAtx', after: '(?:[\r\n]|$)'}, + // Dollar sign and percentage are not used in markdown. + // An ampersand could start a character reference. + {character: '&', after: '[#A-Za-z]', inConstruct: 'phrasing'}, + // An apostrophe can break out of a title. + {character: "'", inConstruct: 'titleApostrophe'}, + // A left paren could break out of a destination raw. + {character: '(', inConstruct: 'destinationRaw'}, + // A left paren followed by `]` could make something into a link or image. + { + before: '\\]', + character: '(', + inConstruct: 'phrasing', + notInConstruct: fullPhrasingSpans + }, + // A right paren could start a list item or break out of a destination + // raw. + {atBreak: true, before: '\\d+', character: ')'}, + {character: ')', inConstruct: 'destinationRaw'}, + // An asterisk can start thematic breaks, list items, emphasis, strong. + {atBreak: true, character: '*', after: '(?:[ \t\r\n*])'}, + {character: '*', inConstruct: 'phrasing', notInConstruct: fullPhrasingSpans}, + // A plus sign could start a list item. + {atBreak: true, character: '+', after: '(?:[ \t\r\n])'}, + // A dash can start thematic breaks, list items, and setext heading + // underlines. + {atBreak: true, character: '-', after: '(?:[ \t\r\n-])'}, + // A dot could start a list item. + {atBreak: true, before: '\\d+', character: '.', after: '(?:[ \t\r\n]|$)'}, + // Slash, colon, and semicolon are not used in markdown for constructs. + // A less than can start html (flow or text) or an autolink. + // HTML could start with an exclamation mark (declaration, cdata, comment), + // slash (closing tag), question mark (instruction), or a letter (tag). + // An autolink also starts with a letter. + // Finally, it could break out of a destination literal. + {atBreak: true, character: '<', after: '[!/?A-Za-z]'}, + { + character: '<', + after: '[!/?A-Za-z]', + inConstruct: 'phrasing', + notInConstruct: fullPhrasingSpans + }, + {character: '<', inConstruct: 'destinationLiteral'}, + // An equals to can start setext heading underlines. + {atBreak: true, character: '='}, + // A greater than can start block quotes and it can break out of a + // destination literal. + {atBreak: true, character: '>'}, + {character: '>', inConstruct: 'destinationLiteral'}, + // Question mark and at sign are not used in markdown for constructs. + // A left bracket can start definitions, references, labels, + {atBreak: true, character: '['}, + {character: '[', inConstruct: 'phrasing', notInConstruct: fullPhrasingSpans}, + {character: '[', inConstruct: ['label', 'reference']}, + // A backslash can start an escape (when followed by punctuation) or a + // hard break (when followed by an eol). + // Note: typical escapes are handled in `safe`! + {character: '\\', after: '[\\r\\n]', inConstruct: 'phrasing'}, + // A right bracket can exit labels. + {character: ']', inConstruct: ['label', 'reference']}, + // Caret is not used in markdown for constructs. + // An underscore can start emphasis, strong, or a thematic break. + {atBreak: true, character: '_'}, + {character: '_', inConstruct: 'phrasing', notInConstruct: fullPhrasingSpans}, + // A grave accent can start code (fenced or text), or it can break out of + // a grave accent code fence. + {atBreak: true, character: '`'}, + { + character: '`', + inConstruct: ['codeFencedLangGraveAccent', 'codeFencedMetaGraveAccent'] + }, + {character: '`', inConstruct: 'phrasing', notInConstruct: fullPhrasingSpans}, + // Left brace, vertical bar, right brace are not used in markdown for + // constructs. + // A tilde can start code (fenced). + {atBreak: true, character: '~'} +] diff --git a/node_modules/mdast-util-to-markdown/lib/util/association.d.ts b/node_modules/mdast-util-to-markdown/lib/util/association.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..1169f5490ca168cc0a0ba207a0007d702fd48077 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/association.d.ts @@ -0,0 +1,2 @@ +export function association(node: import("mdast").Association): string; +//# sourceMappingURL=association.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/association.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/association.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..ab4d0f6cc8d3767e1137a5e9f8d285927f89bdc2 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/association.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"association.d.ts","sourceRoot":"","sources":["association.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/association.js b/node_modules/mdast-util-to-markdown/lib/util/association.js new file mode 100644 index 0000000000000000000000000000000000000000..cee08f4f4d3b59e593a38b0deff96eba51a6fbcf --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/association.js @@ -0,0 +1,33 @@ +/** + * @import {AssociationId} from '../types.js' + */ + +import {decodeString} from 'micromark-util-decode-string' + +/** + * Get an identifier from an association to match it to others. + * + * Associations are nodes that match to something else through an ID: + * . + * + * The `label` of an association is the string value: character escapes and + * references work, and casing is intact. + * The `identifier` is used to match one association to another: + * controversially, character escapes and references don’t work in this + * matching: `©` does not match `©`, and `\+` does not match `+`. + * + * But casing is ignored (and whitespace) is trimmed and collapsed: ` A\nb` + * matches `a b`. + * So, we do prefer the label when figuring out how we’re going to serialize: + * it has whitespace, casing, and we can ignore most useless character + * escapes and all character references. + * + * @type {AssociationId} + */ +export function association(node) { + if (node.label || !node.identifier) { + return node.label || '' + } + + return decodeString(node.identifier) +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts b/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8e71a0a29bb72f6bb71f2a4b69505cf0a2b2c70d --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts @@ -0,0 +1,11 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkBulletOrdered(state: State): Exclude; +import type { State } from 'mdast-util-to-markdown'; +import type { Options } from 'mdast-util-to-markdown'; +//# sourceMappingURL=check-bullet-ordered.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..6fec81e03f8ae3d68ea11b41ec1a04362c966d2b --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"check-bullet-ordered.d.ts","sourceRoot":"","sources":["check-bullet-ordered.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,0CAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAc/D;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js b/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js new file mode 100644 index 0000000000000000000000000000000000000000..cdacbd85691e1e3bd092cca36349769e67fe38ed --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js @@ -0,0 +1,21 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ + +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkBulletOrdered(state) { + const marker = state.options.bulletOrdered || '.' + + if (marker !== '.' && marker !== ')') { + throw new Error( + 'Cannot serialize items with `' + + marker + + '` for `options.bulletOrdered`, expected `.` or `)`' + ) + } + + return marker +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts b/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..365374b3db66395773e34f96516693aa443232c1 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts @@ -0,0 +1,8 @@ +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkBulletOther(state: State): Exclude; +import type { State } from 'mdast-util-to-markdown'; +import type { Options } from 'mdast-util-to-markdown'; +//# sourceMappingURL=check-bullet-other.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..09fabd3393eb7a807398d93e3de870f0c2429329 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"check-bullet-other.d.ts","sourceRoot":"","sources":["check-bullet-other.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CA6BxD;2BApCgC,wBAAwB;6BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js b/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js new file mode 100644 index 0000000000000000000000000000000000000000..2e15fc8fee4d07e5d767eb4d5b397d933a1b59f8 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js @@ -0,0 +1,38 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ + +import {checkBullet} from './check-bullet.js' + +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkBulletOther(state) { + const bullet = checkBullet(state) + const bulletOther = state.options.bulletOther + + if (!bulletOther) { + return bullet === '*' ? '-' : '*' + } + + if (bulletOther !== '*' && bulletOther !== '+' && bulletOther !== '-') { + throw new Error( + 'Cannot serialize items with `' + + bulletOther + + '` for `options.bulletOther`, expected `*`, `+`, or `-`' + ) + } + + if (bulletOther === bullet) { + throw new Error( + 'Expected `bullet` (`' + + bullet + + '`) and `bulletOther` (`' + + bulletOther + + '`) to be different' + ) + } + + return bulletOther +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts b/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..63e27c4a087a1609e40b12da3231bc6216269e12 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts @@ -0,0 +1,11 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkBullet(state: State): Exclude; +import type { State } from 'mdast-util-to-markdown'; +import type { Options } from 'mdast-util-to-markdown'; +//# sourceMappingURL=check-bullet.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..6c0526f59452292dce6bb3997b52493bcf58ed12 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"check-bullet.d.ts","sourceRoot":"","sources":["check-bullet.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,mCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAcxD;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js b/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js new file mode 100644 index 0000000000000000000000000000000000000000..f0e5b919710ba28224984485e32509597cecd750 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js @@ -0,0 +1,21 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ + +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkBullet(state) { + const marker = state.options.bullet || '*' + + if (marker !== '*' && marker !== '+' && marker !== '-') { + throw new Error( + 'Cannot serialize items with `' + + marker + + '` for `options.bullet`, expected `*`, `+`, or `-`' + ) + } + + return marker +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts b/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0963030bf4d7100dcad20edf6c7c395a021fef52 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts @@ -0,0 +1,11 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkEmphasis(state: State): Exclude; +import type { State } from 'mdast-util-to-markdown'; +import type { Options } from 'mdast-util-to-markdown'; +//# sourceMappingURL=check-emphasis.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..5421035d321e99e3754ad8c0d5f7588912d2420b --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"check-emphasis.d.ts","sourceRoot":"","sources":["check-emphasis.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,qCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAc1D;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js b/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js new file mode 100644 index 0000000000000000000000000000000000000000..33f0c7383ae529fbacde99b3493fe35cd8ff5377 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js @@ -0,0 +1,21 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ + +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkEmphasis(state) { + const marker = state.options.emphasis || '*' + + if (marker !== '*' && marker !== '_') { + throw new Error( + 'Cannot serialize emphasis with `' + + marker + + '` for `options.emphasis`, expected `*`, or `_`' + ) + } + + return marker +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts b/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..33a33a144c9aed3a9e7c5d1904ae0a8cafa75956 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts @@ -0,0 +1,11 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkFence(state: State): Exclude; +import type { State } from 'mdast-util-to-markdown'; +import type { Options } from 'mdast-util-to-markdown'; +//# sourceMappingURL=check-fence.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..e33ae20c16b0e6046e016c7ed170371923fce125 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"check-fence.d.ts","sourceRoot":"","sources":["check-fence.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,kCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAcvD;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-fence.js b/node_modules/mdast-util-to-markdown/lib/util/check-fence.js new file mode 100644 index 0000000000000000000000000000000000000000..ffabf99c98d55d1f1752f49accaf3fc267c5d711 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-fence.js @@ -0,0 +1,21 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ + +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkFence(state) { + const marker = state.options.fence || '`' + + if (marker !== '`' && marker !== '~') { + throw new Error( + 'Cannot serialize code with `' + + marker + + '` for `options.fence`, expected `` ` `` or `~`' + ) + } + + return marker +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts b/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..143f866db15bf46ea13829c8b5f8a249987f51e6 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts @@ -0,0 +1,11 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkListItemIndent(state: State): Exclude; +import type { State } from 'mdast-util-to-markdown'; +import type { Options } from 'mdast-util-to-markdown'; +//# sourceMappingURL=check-list-item-indent.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..b657e5a626548c3837d3bf8471eb7c627c06b0c1 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"check-list-item-indent.d.ts","sourceRoot":"","sources":["check-list-item-indent.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,2CAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAchE;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js b/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js new file mode 100644 index 0000000000000000000000000000000000000000..7a2a105efc27855b386950deb3ad56ebbde5b958 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js @@ -0,0 +1,21 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ + +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkListItemIndent(state) { + const style = state.options.listItemIndent || 'one' + + if (style !== 'tab' && style !== 'one' && style !== 'mixed') { + throw new Error( + 'Cannot serialize items with `' + + style + + '` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`' + ) + } + + return style +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts b/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..48b6d82efeb88fdd5bf5fc91dfd8406d69abe342 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts @@ -0,0 +1,11 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkQuote(state: State): Exclude; +import type { State } from 'mdast-util-to-markdown'; +import type { Options } from 'mdast-util-to-markdown'; +//# sourceMappingURL=check-quote.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..dcb455f0003fc4607c81f4957ba31c2c1e1e9f7d --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"check-quote.d.ts","sourceRoot":"","sources":["check-quote.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,kCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAcvD;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-quote.js b/node_modules/mdast-util-to-markdown/lib/util/check-quote.js new file mode 100644 index 0000000000000000000000000000000000000000..0d6a5ff0c3e64f0f83b4cc1ffcb724b84f1e4945 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-quote.js @@ -0,0 +1,21 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ + +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkQuote(state) { + const marker = state.options.quote || '"' + + if (marker !== '"' && marker !== "'") { + throw new Error( + 'Cannot serialize title with `' + + marker + + '` for `options.quote`, expected `"`, or `\'`' + ) + } + + return marker +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts b/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..aaa32388b2bd48bb61781b5dfb81062abf00df7a --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts @@ -0,0 +1,11 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkRuleRepetition(state: State): Exclude; +import type { State } from 'mdast-util-to-markdown'; +import type { Options } from 'mdast-util-to-markdown'; +//# sourceMappingURL=check-rule-repetition.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..e2d063e3fb82acdf114b92c1c82254813dd98627 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"check-rule-repetition.d.ts","sourceRoot":"","sources":["check-rule-repetition.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,2CAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAchE;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js b/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js new file mode 100644 index 0000000000000000000000000000000000000000..accc91c70c44530638214dc2c50168044ec4b414 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js @@ -0,0 +1,21 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ + +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkRuleRepetition(state) { + const repetition = state.options.ruleRepetition || 3 + + if (repetition < 3) { + throw new Error( + 'Cannot serialize rules with repetition `' + + repetition + + '` for `options.ruleRepetition`, expected `3` or more' + ) + } + + return repetition +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts b/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..21514d9ef789be75c75f0b7d17c70db417666d39 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts @@ -0,0 +1,11 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkRule(state: State): Exclude; +import type { State } from 'mdast-util-to-markdown'; +import type { Options } from 'mdast-util-to-markdown'; +//# sourceMappingURL=check-rule.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..4fc76643f432f78ee125b0cdc1b61bce74b05338 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"check-rule.d.ts","sourceRoot":"","sources":["check-rule.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,iCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CActD;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-rule.js b/node_modules/mdast-util-to-markdown/lib/util/check-rule.js new file mode 100644 index 0000000000000000000000000000000000000000..281928aba88adff3d65945f233410af820cf6ba6 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-rule.js @@ -0,0 +1,21 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ + +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkRule(state) { + const marker = state.options.rule || '*' + + if (marker !== '*' && marker !== '-' && marker !== '_') { + throw new Error( + 'Cannot serialize rules with `' + + marker + + '` for `options.rule`, expected `*`, `-`, or `_`' + ) + } + + return marker +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts b/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..6649c4ca6c175c682b3926a57be1615802007dd8 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts @@ -0,0 +1,11 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkStrong(state: State): Exclude; +import type { State } from 'mdast-util-to-markdown'; +import type { Options } from 'mdast-util-to-markdown'; +//# sourceMappingURL=check-strong.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..d5ffa6d446acc20312fd6e9c592988280b1e601d --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"check-strong.d.ts","sourceRoot":"","sources":["check-strong.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,mCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAcxD;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/check-strong.js b/node_modules/mdast-util-to-markdown/lib/util/check-strong.js new file mode 100644 index 0000000000000000000000000000000000000000..3ad8c8904deabd404a78b5c9052c11e5251d5115 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/check-strong.js @@ -0,0 +1,21 @@ +/** + * @import {Options, State} from 'mdast-util-to-markdown' + */ + +/** + * @param {State} state + * @returns {Exclude} + */ +export function checkStrong(state) { + const marker = state.options.strong || '*' + + if (marker !== '*' && marker !== '_') { + throw new Error( + 'Cannot serialize strong with `' + + marker + + '` for `options.strong`, expected `*`, or `_`' + ) + } + + return marker +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts b/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..ac9cc041a1eab33def2309896ac437bd41e6a099 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts @@ -0,0 +1,2 @@ +export function compilePattern(info: import("../types.js").Unsafe): RegExp; +//# sourceMappingURL=compile-pattern.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..ad496828cacefcd3ff5e22c8bbc0558af8e75b2f --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"compile-pattern.d.ts","sourceRoot":"","sources":["compile-pattern.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js b/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js new file mode 100644 index 0000000000000000000000000000000000000000..877c059c0cf84fe6a10ab2b1b4bc2e4f2f746a60 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js @@ -0,0 +1,24 @@ +/** + * @import {CompilePattern} from '../types.js' + */ + +/** + * @type {CompilePattern} + */ +export function compilePattern(pattern) { + if (!pattern._compiled) { + const before = + (pattern.atBreak ? '[\\r\\n][\\t ]*' : '') + + (pattern.before ? '(?:' + pattern.before + ')' : '') + + pattern._compiled = new RegExp( + (before ? '(' + before + ')' : '') + + (/[|\\{}()[\]^$+*?.-]/.test(pattern.character) ? '\\' : '') + + pattern.character + + (pattern.after ? '(?:' + pattern.after + ')' : ''), + 'g' + ) + } + + return pattern._compiled +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts b/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0e4338ffea3b33b6e134768a6e9ad8060ad6aead --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts @@ -0,0 +1,19 @@ +/** + * @import {State} from 'mdast-util-to-markdown' + * @import {FlowChildren, FlowParents, TrackFields} from '../types.js' + */ +/** + * @param {FlowParents} parent + * Parent of flow nodes. + * @param {State} state + * Info passed around about the current state. + * @param {TrackFields} info + * Info on where we are in the document we are generating. + * @returns {string} + * Serialized children, joined by (blank) lines. + */ +export function containerFlow(parent: FlowParents, state: State, info: TrackFields): string; +import type { FlowParents } from '../types.js'; +import type { State } from 'mdast-util-to-markdown'; +import type { TrackFields } from '../types.js'; +//# sourceMappingURL=container-flow.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..a8151c8454b9ffc4d1a8f61608b769fc7b588f6c --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"container-flow.d.ts","sourceRoot":"","sources":["container-flow.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;GASG;AACH,sCATW,WAAW,SAEX,KAAK,QAEL,WAAW,GAET,MAAM,CA0ClB;iCApDwD,aAAa;2BAD9C,wBAAwB;iCACS,aAAa"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/container-flow.js b/node_modules/mdast-util-to-markdown/lib/util/container-flow.js new file mode 100644 index 0000000000000000000000000000000000000000..e2b118324e4392c713ca6bd18f1be79a6ee72aeb --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/container-flow.js @@ -0,0 +1,84 @@ +/** + * @import {State} from 'mdast-util-to-markdown' + * @import {FlowChildren, FlowParents, TrackFields} from '../types.js' + */ + +/** + * @param {FlowParents} parent + * Parent of flow nodes. + * @param {State} state + * Info passed around about the current state. + * @param {TrackFields} info + * Info on where we are in the document we are generating. + * @returns {string} + * Serialized children, joined by (blank) lines. + */ +export function containerFlow(parent, state, info) { + const indexStack = state.indexStack + const children = parent.children || [] + const tracker = state.createTracker(info) + /** @type {Array} */ + const results = [] + let index = -1 + + indexStack.push(-1) + + while (++index < children.length) { + const child = children[index] + + indexStack[indexStack.length - 1] = index + + results.push( + tracker.move( + state.handle(child, parent, state, { + before: '\n', + after: '\n', + ...tracker.current() + }) + ) + ) + + if (child.type !== 'list') { + state.bulletLastUsed = undefined + } + + if (index < children.length - 1) { + results.push( + tracker.move(between(child, children[index + 1], parent, state)) + ) + } + } + + indexStack.pop() + + return results.join('') +} + +/** + * @param {FlowChildren} left + * @param {FlowChildren} right + * @param {FlowParents} parent + * @param {State} state + * @returns {string} + */ +function between(left, right, parent, state) { + let index = state.join.length + + while (index--) { + const result = state.join[index](left, right, parent, state) + + if (result === true || result === 1) { + break + } + + if (typeof result === 'number') { + return '\n'.repeat(1 + result) + } + + if (result === false) { + return '\n\n\n\n' + } + } + + return '\n\n' +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts b/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..1624d8535a6ea03e96c76040b9706b42dc23d106 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts @@ -0,0 +1,19 @@ +/** + * Serialize the children of a parent that contains phrasing children. + * + * These children will be joined flush together. + * + * @param {PhrasingParents} parent + * Parent of flow nodes. + * @param {State} state + * Info passed around about the current state. + * @param {Info} info + * Info on where we are in the document we are generating. + * @returns {string} + * Serialized children, joined together. + */ +export function containerPhrasing(parent: PhrasingParents, state: State, info: Info): string; +import type { PhrasingParents } from '../types.js'; +import type { State } from 'mdast-util-to-markdown'; +import type { Info } from 'mdast-util-to-markdown'; +//# sourceMappingURL=container-phrasing.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..0626b7a47cd78505c1b7d902dcb03af823aef10a --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"container-phrasing.d.ts","sourceRoot":"","sources":["container-phrasing.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,0CATW,eAAe,SAEf,KAAK,QAEL,IAAI,GAEF,MAAM,CA0GlB;qCA1HiC,aAAa;2BADT,wBAAwB;0BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js b/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js new file mode 100644 index 0000000000000000000000000000000000000000..3b4dc46bcab677d1a86c0ca3cc0d11e876e7e81b --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js @@ -0,0 +1,125 @@ +/** + * @import {Handle, Info, State} from 'mdast-util-to-markdown' + * @import {PhrasingParents} from '../types.js' + */ + +import {encodeCharacterReference} from './encode-character-reference.js' + +/** + * Serialize the children of a parent that contains phrasing children. + * + * These children will be joined flush together. + * + * @param {PhrasingParents} parent + * Parent of flow nodes. + * @param {State} state + * Info passed around about the current state. + * @param {Info} info + * Info on where we are in the document we are generating. + * @returns {string} + * Serialized children, joined together. + */ +export function containerPhrasing(parent, state, info) { + const indexStack = state.indexStack + const children = parent.children || [] + /** @type {Array} */ + const results = [] + let index = -1 + let before = info.before + /** @type {string | undefined} */ + let encodeAfter + + indexStack.push(-1) + let tracker = state.createTracker(info) + + while (++index < children.length) { + const child = children[index] + /** @type {string} */ + let after + + indexStack[indexStack.length - 1] = index + + if (index + 1 < children.length) { + /** @type {Handle} */ + // @ts-expect-error: hush, it’s actually a `zwitch`. + let handle = state.handle.handlers[children[index + 1].type] + /** @type {Handle} */ + // @ts-expect-error: hush, it’s actually a `zwitch`. + if (handle && handle.peek) handle = handle.peek + after = handle + ? handle(children[index + 1], parent, state, { + before: '', + after: '', + ...tracker.current() + }).charAt(0) + : '' + } else { + after = info.after + } + + // In some cases, html (text) can be found in phrasing right after an eol. + // When we’d serialize that, in most cases that would be seen as html + // (flow). + // As we can’t escape or so to prevent it from happening, we take a somewhat + // reasonable approach: replace that eol with a space. + // See: + if ( + results.length > 0 && + (before === '\r' || before === '\n') && + child.type === 'html' + ) { + results[results.length - 1] = results[results.length - 1].replace( + /(\r?\n|\r)$/, + ' ' + ) + before = ' ' + + // To do: does this work to reset tracker? + tracker = state.createTracker(info) + tracker.move(results.join('')) + } + + let value = state.handle(child, parent, state, { + ...tracker.current(), + after, + before + }) + + // If we had to encode the first character after the previous node and it’s + // still the same character, + // encode it. + if (encodeAfter && encodeAfter === value.slice(0, 1)) { + value = + encodeCharacterReference(encodeAfter.charCodeAt(0)) + value.slice(1) + } + + const encodingInfo = state.attentionEncodeSurroundingInfo + state.attentionEncodeSurroundingInfo = undefined + encodeAfter = undefined + + // If we have to encode the first character before the current node and + // it’s still the same character, + // encode it. + if (encodingInfo) { + if ( + results.length > 0 && + encodingInfo.before && + before === results[results.length - 1].slice(-1) + ) { + results[results.length - 1] = + results[results.length - 1].slice(0, -1) + + encodeCharacterReference(before.charCodeAt(0)) + } + + if (encodingInfo.after) encodeAfter = after + } + + tracker.move(value) + results.push(value) + before = value.slice(-1) + } + + indexStack.pop() + + return results.join('') +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts b/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..953077166e579029689e7a75b48a7b3bce2f2f3a --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts @@ -0,0 +1,7 @@ +/** + * @this {State} + * @returns {'*' | '_'} + */ +export function emphasisStrongMarker(this: State): "*" | "_"; +import type { State } from '../types.js'; +//# sourceMappingURL=emphasis-strong-marker.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..2839bc959b04de4edf11c8f50afd849fc2a1ac21 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"emphasis-strong-marker.d.ts","sourceRoot":"","sources":["emphasis-strong-marker.js"],"names":[],"mappings":"AAOA;;;GAGG;AACH,mDAFa,GAAG,GAAG,GAAG,CAqBrB;2BA7BuB,aAAa"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts b/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..3f4c9aa982ff1f210d844770affcfaa9dd337fd6 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts @@ -0,0 +1,10 @@ +/** + * Encode a code point as a character reference. + * + * @param {number} code + * Code point to encode. + * @returns {string} + * Encoded character reference. + */ +export function encodeCharacterReference(code: number): string; +//# sourceMappingURL=encode-character-reference.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..5ac76ce8efcde9d348c53ea4eaa0c1ab335a11ce --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"encode-character-reference.d.ts","sourceRoot":"","sources":["encode-character-reference.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,+CALW,MAAM,GAEJ,MAAM,CAKlB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js b/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js new file mode 100644 index 0000000000000000000000000000000000000000..149d26a3e3156518f98e5a071e4ec26eece73acc --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js @@ -0,0 +1,11 @@ +/** + * Encode a code point as a character reference. + * + * @param {number} code + * Code point to encode. + * @returns {string} + * Encoded character reference. + */ +export function encodeCharacterReference(code) { + return '&#x' + code.toString(16).toUpperCase() + ';' +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts b/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9004124689471fe88891d346525f4d5a487e5a30 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts @@ -0,0 +1,33 @@ +/** + * Check whether to encode (as a character reference) the characters + * surrounding an attention run. + * + * Which characters are around an attention run influence whether it works or + * not. + * + * See for more info. + * See this markdown in a particular renderer to see what works: + * + * ```markdown + * | | A (letter inside) | B (punctuation inside) | C (whitespace inside) | D (nothing inside) | + * | ----------------------- | ----------------- | ---------------------- | --------------------- | ------------------ | + * | 1 (letter outside) | x*y*z | x*.*z | x* *z | x**z | + * | 2 (punctuation outside) | .*y*. | .*.*. | .* *. | .**. | + * | 3 (whitespace outside) | x *y* z | x *.* z | x * * z | x ** z | + * | 4 (nothing outside) | *x* | *.* | * * | ** | + * ``` + * + * @param {number} outside + * Code point on the outer side of the run. + * @param {number} inside + * Code point on the inner side of the run. + * @param {'*' | '_'} marker + * Marker of the run. + * Underscores are handled more strictly (they form less often) than + * asterisks. + * @returns {EncodeSides} + * Whether to encode characters. + */ +export function encodeInfo(outside: number, inside: number, marker: "*" | "_"): EncodeSides; +import type { EncodeSides } from '../types.js'; +//# sourceMappingURL=encode-info.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..d0a3056578b59b76664140134a91090cf9e2ab49 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"encode-info.d.ts","sourceRoot":"","sources":["encode-info.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAKH,oCAfW,MAAM,UAEN,MAAM,UAEN,GAAG,GAAG,GAAG,GAIP,WAAW,CAgDvB;iCAhF6B,aAAa"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/encode-info.js b/node_modules/mdast-util-to-markdown/lib/util/encode-info.js new file mode 100644 index 0000000000000000000000000000000000000000..8895a7953535c49280f31724772ac11eea1d1c66 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/encode-info.js @@ -0,0 +1,82 @@ +/** + * @import {EncodeSides} from '../types.js' + */ + +import {classifyCharacter} from 'micromark-util-classify-character' + +/** + * Check whether to encode (as a character reference) the characters + * surrounding an attention run. + * + * Which characters are around an attention run influence whether it works or + * not. + * + * See for more info. + * See this markdown in a particular renderer to see what works: + * + * ```markdown + * | | A (letter inside) | B (punctuation inside) | C (whitespace inside) | D (nothing inside) | + * | ----------------------- | ----------------- | ---------------------- | --------------------- | ------------------ | + * | 1 (letter outside) | x*y*z | x*.*z | x* *z | x**z | + * | 2 (punctuation outside) | .*y*. | .*.*. | .* *. | .**. | + * | 3 (whitespace outside) | x *y* z | x *.* z | x * * z | x ** z | + * | 4 (nothing outside) | *x* | *.* | * * | ** | + * ``` + * + * @param {number} outside + * Code point on the outer side of the run. + * @param {number} inside + * Code point on the inner side of the run. + * @param {'*' | '_'} marker + * Marker of the run. + * Underscores are handled more strictly (they form less often) than + * asterisks. + * @returns {EncodeSides} + * Whether to encode characters. + */ +// Important: punctuation must never be encoded. +// Punctuation is solely used by markdown constructs. +// And by encoding itself. +// Encoding them will break constructs or double encode things. +export function encodeInfo(outside, inside, marker) { + const outsideKind = classifyCharacter(outside) + const insideKind = classifyCharacter(inside) + + // Letter outside: + if (outsideKind === undefined) { + return insideKind === undefined + ? // Letter inside: + // we have to encode *both* letters for `_` as it is looser. + // it already forms for `*` (and GFMs `~`). + marker === '_' + ? {inside: true, outside: true} + : {inside: false, outside: false} + : insideKind === 1 + ? // Whitespace inside: encode both (letter, whitespace). + {inside: true, outside: true} + : // Punctuation inside: encode outer (letter) + {inside: false, outside: true} + } + + // Whitespace outside: + if (outsideKind === 1) { + return insideKind === undefined + ? // Letter inside: already forms. + {inside: false, outside: false} + : insideKind === 1 + ? // Whitespace inside: encode both (whitespace). + {inside: true, outside: true} + : // Punctuation inside: already forms. + {inside: false, outside: false} + } + + // Punctuation outside: + return insideKind === undefined + ? // Letter inside: already forms. + {inside: false, outside: false} + : insideKind === 1 + ? // Whitespace inside: encode inner (whitespace). + {inside: true, outside: false} + : // Punctuation inside: already forms. + {inside: false, outside: false} +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts b/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..88487873e82a43f475d4f72d58e79deb408fe708 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts @@ -0,0 +1,13 @@ +/** + * @import {State} from 'mdast-util-to-markdown' + * @import {Code} from 'mdast' + */ +/** + * @param {Code} node + * @param {State} state + * @returns {boolean} + */ +export function formatCodeAsIndented(node: Code, state: State): boolean; +import type { Code } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +//# sourceMappingURL=format-code-as-indented.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..7c906e4c5ce4438c1af74408331d149f442c6091 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"format-code-as-indented.d.ts","sourceRoot":"","sources":["format-code-as-indented.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AACH,2CAJW,IAAI,SACJ,KAAK,GACH,OAAO,CAanB;0BAnBsB,OAAO;2BADN,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js b/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js new file mode 100644 index 0000000000000000000000000000000000000000..0bcfeb5d6dd9437f817913571c2308b984cb175f --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js @@ -0,0 +1,22 @@ +/** + * @import {State} from 'mdast-util-to-markdown' + * @import {Code} from 'mdast' + */ + +/** + * @param {Code} node + * @param {State} state + * @returns {boolean} + */ +export function formatCodeAsIndented(node, state) { + return Boolean( + state.options.fences === false && + node.value && + // If there’s no info… + !node.lang && + // And there’s a non-whitespace character… + /[^ \r\n]/.test(node.value) && + // And the value doesn’t start or end in a blank… + !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node.value) + ) +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts b/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..fbe72ebff03034a6e9e52b64479a2b3361f2fce5 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts @@ -0,0 +1,9 @@ +/** + * @param {Heading} node + * @param {State} state + * @returns {boolean} + */ +export function formatHeadingAsSetext(node: Heading, state: State): boolean; +import type { Heading } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +//# sourceMappingURL=format-heading-as-setext.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..3d9e1f3916550c396d743863bc047cfbfa53d7ea --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"format-heading-as-setext.d.ts","sourceRoot":"","sources":["format-heading-as-setext.js"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,4CAJW,OAAO,SACP,KAAK,GACH,OAAO,CAsBnB;6BA/ByB,OAAO;2BADT,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js b/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js new file mode 100644 index 0000000000000000000000000000000000000000..60759a4e1a93b84f81c231e8aeeabdb1d5c94ffa --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js @@ -0,0 +1,34 @@ +/** + * @import {State} from 'mdast-util-to-markdown' + * @import {Heading} from 'mdast' + */ + +import {EXIT, visit} from 'unist-util-visit' +import {toString} from 'mdast-util-to-string' + +/** + * @param {Heading} node + * @param {State} state + * @returns {boolean} + */ +export function formatHeadingAsSetext(node, state) { + let literalWithBreak = false + + // Look for literals with a line break. + // Note that this also + visit(node, function (node) { + if ( + ('value' in node && /\r?\n|\r/.test(node.value)) || + node.type === 'break' + ) { + literalWithBreak = true + return EXIT + } + }) + + return Boolean( + (!node.depth || node.depth < 3) && + toString(node) && + (state.options.setext || literalWithBreak) + ) +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts b/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..a39a6363e3af59c20468cb517f60b2c75ff7af86 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts @@ -0,0 +1,9 @@ +/** + * @param {Link} node + * @param {State} state + * @returns {boolean} + */ +export function formatLinkAsAutolink(node: Link, state: State): boolean; +import type { Link } from 'mdast'; +import type { State } from 'mdast-util-to-markdown'; +//# sourceMappingURL=format-link-as-autolink.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..6c2e37023cbb9157491b831da35f2682c33b1bf5 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"format-link-as-autolink.d.ts","sourceRoot":"","sources":["format-link-as-autolink.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,2CAJW,IAAI,SACJ,KAAK,GACH,OAAO,CAuBnB;0BA/BsB,OAAO;2BADN,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js b/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js new file mode 100644 index 0000000000000000000000000000000000000000..ee1ba959d7697e49563c65bafb764c26577d5701 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js @@ -0,0 +1,34 @@ +/** + * @import {State} from 'mdast-util-to-markdown' + * @import {Link} from 'mdast' + */ + +import {toString} from 'mdast-util-to-string' + +/** + * @param {Link} node + * @param {State} state + * @returns {boolean} + */ +export function formatLinkAsAutolink(node, state) { + const raw = toString(node) + + return Boolean( + !state.options.resourceLink && + // If there’s a url… + node.url && + // And there’s a no title… + !node.title && + // And the content of `node` is a single text node… + node.children && + node.children.length === 1 && + node.children[0].type === 'text' && + // And if the url is the same as the content… + (raw === node.url || 'mailto:' + raw === node.url) && + // And that starts w/ a protocol… + /^[a-z][a-z+.-]+:/i.test(node.url) && + // And that doesn’t contain ASCII control codes (character escapes and + // references don’t work), space, or angle brackets… + !/[\0- <>\u007F]/.test(node.url) + ) +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts b/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..85e440b1a0bf64bf166fc038f20b7f55220696b2 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts @@ -0,0 +1,2 @@ +export function indentLines(value: string, map: import("../types.js").Map): string; +//# sourceMappingURL=indent-lines.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..1aaf7e1fb03a903fc20f269a07ad388292a75fdc --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"indent-lines.d.ts","sourceRoot":"","sources":["indent-lines.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js b/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js new file mode 100644 index 0000000000000000000000000000000000000000..6b15331e515757bd19448a1d1c62e203de1bedcd --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js @@ -0,0 +1,35 @@ +/** + * @import {IndentLines} from '../types.js' + */ + +const eol = /\r?\n|\r/g + +/** + * @type {IndentLines} + */ +export function indentLines(value, map) { + /** @type {Array} */ + const result = [] + let start = 0 + let line = 0 + /** @type {RegExpExecArray | null} */ + let match + + while ((match = eol.exec(value))) { + one(value.slice(start, match.index)) + result.push(match[0]) + start = match.index + match[0].length + line++ + } + + one(value.slice(start)) + + return result.join('') + + /** + * @param {string} value + */ + function one(value) { + result.push(map(value, line, !value)) + } +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts b/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..b20731ff7c093ec1b1af97f28ab94a173153b3bf --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts @@ -0,0 +1,12 @@ +/** + * @import {ConstructName, Unsafe} from 'mdast-util-to-markdown' + */ +/** + * @param {Array} stack + * @param {Unsafe} pattern + * @returns {boolean} + */ +export function patternInScope(stack: Array, pattern: Unsafe): boolean; +import type { ConstructName } from 'mdast-util-to-markdown'; +import type { Unsafe } from 'mdast-util-to-markdown'; +//# sourceMappingURL=pattern-in-scope.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..1536fd1562bb67bedd45c3d6f02cebb644a2c254 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pattern-in-scope.d.ts","sourceRoot":"","sources":["pattern-in-scope.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,sCAJW,KAAK,CAAC,aAAa,CAAC,WACpB,MAAM,GACJ,OAAO,CAOnB;mCAbuC,wBAAwB;4BAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js b/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js new file mode 100644 index 0000000000000000000000000000000000000000..0fcb02caadcef1d062a964e6a20a6c2482026afe --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js @@ -0,0 +1,41 @@ +/** + * @import {ConstructName, Unsafe} from 'mdast-util-to-markdown' + */ + +/** + * @param {Array} stack + * @param {Unsafe} pattern + * @returns {boolean} + */ +export function patternInScope(stack, pattern) { + return ( + listInScope(stack, pattern.inConstruct, true) && + !listInScope(stack, pattern.notInConstruct, false) + ) +} + +/** + * @param {Array} stack + * @param {Unsafe['inConstruct']} list + * @param {boolean} none + * @returns {boolean} + */ +function listInScope(stack, list, none) { + if (typeof list === 'string') { + list = [list] + } + + if (!list || list.length === 0) { + return none + } + + let index = -1 + + while (++index < list.length) { + if (stack.includes(list[index])) { + return true + } + } + + return false +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts b/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..f709db969009ad8bb8afef5b8c7c47cab5b8ce24 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts @@ -0,0 +1,29 @@ +/** + * Make a string safe for embedding in markdown constructs. + * + * In markdown, almost all punctuation characters can, in certain cases, + * result in something. + * Whether they do is highly subjective to where they happen and in what + * they happen. + * + * To solve this, `mdast-util-to-markdown` tracks: + * + * * Characters before and after something; + * * What “constructs” we are in. + * + * This information is then used by this function to escape or encode + * special characters. + * + * @param {State} state + * Info passed around about the current state. + * @param {string | null | undefined} input + * Raw value to make safe. + * @param {SafeConfig} config + * Configuration. + * @returns {string} + * Serialized markdown safe for embedding. + */ +export function safe(state: State, input: string | null | undefined, config: SafeConfig): string; +import type { State } from 'mdast-util-to-markdown'; +import type { SafeConfig } from 'mdast-util-to-markdown'; +//# sourceMappingURL=safe.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..d257dae330badd80d35dc2420712347af00368d0 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"safe.d.ts","sourceRoot":"","sources":["safe.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,4BATW,KAAK,SAEL,MAAM,GAAG,IAAI,GAAG,SAAS,UAEzB,UAAU,GAER,MAAM,CAoGlB;2BAhImC,wBAAwB;gCAAxB,wBAAwB"} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/safe.js b/node_modules/mdast-util-to-markdown/lib/util/safe.js new file mode 100644 index 0000000000000000000000000000000000000000..456fe215ae3d032ffaea4590f0d097bcb9195619 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/safe.js @@ -0,0 +1,174 @@ +/** + * @import {SafeConfig, State} from 'mdast-util-to-markdown' + */ + +import {encodeCharacterReference} from './encode-character-reference.js' +import {patternInScope} from './pattern-in-scope.js' + +/** + * Make a string safe for embedding in markdown constructs. + * + * In markdown, almost all punctuation characters can, in certain cases, + * result in something. + * Whether they do is highly subjective to where they happen and in what + * they happen. + * + * To solve this, `mdast-util-to-markdown` tracks: + * + * * Characters before and after something; + * * What “constructs” we are in. + * + * This information is then used by this function to escape or encode + * special characters. + * + * @param {State} state + * Info passed around about the current state. + * @param {string | null | undefined} input + * Raw value to make safe. + * @param {SafeConfig} config + * Configuration. + * @returns {string} + * Serialized markdown safe for embedding. + */ +export function safe(state, input, config) { + const value = (config.before || '') + (input || '') + (config.after || '') + /** @type {Array} */ + const positions = [] + /** @type {Array} */ + const result = [] + /** @type {Record} */ + const infos = {} + let index = -1 + + while (++index < state.unsafe.length) { + const pattern = state.unsafe[index] + + if (!patternInScope(state.stack, pattern)) { + continue + } + + const expression = state.compilePattern(pattern) + /** @type {RegExpExecArray | null} */ + let match + + while ((match = expression.exec(value))) { + const before = 'before' in pattern || Boolean(pattern.atBreak) + const after = 'after' in pattern + const position = match.index + (before ? match[1].length : 0) + + if (positions.includes(position)) { + if (infos[position].before && !before) { + infos[position].before = false + } + + if (infos[position].after && !after) { + infos[position].after = false + } + } else { + positions.push(position) + infos[position] = {before, after} + } + } + } + + positions.sort(numerical) + + let start = config.before ? config.before.length : 0 + const end = value.length - (config.after ? config.after.length : 0) + index = -1 + + while (++index < positions.length) { + const position = positions[index] + + // Character before or after matched: + if (position < start || position >= end) { + continue + } + + // If this character is supposed to be escaped because it has a condition on + // the next character, and the next character is definitly being escaped, + // then skip this escape. + if ( + (position + 1 < end && + positions[index + 1] === position + 1 && + infos[position].after && + !infos[position + 1].before && + !infos[position + 1].after) || + (positions[index - 1] === position - 1 && + infos[position].before && + !infos[position - 1].before && + !infos[position - 1].after) + ) { + continue + } + + if (start !== position) { + // If we have to use a character reference, an ampersand would be more + // correct, but as backslashes only care about punctuation, either will + // do the trick + result.push(escapeBackslashes(value.slice(start, position), '\\')) + } + + start = position + + if ( + /[!-/:-@[-`{-~]/.test(value.charAt(position)) && + (!config.encode || !config.encode.includes(value.charAt(position))) + ) { + // Character escape. + result.push('\\') + } else { + // Character reference. + result.push(encodeCharacterReference(value.charCodeAt(position))) + start++ + } + } + + result.push(escapeBackslashes(value.slice(start, end), config.after)) + + return result.join('') +} + +/** + * @param {number} a + * @param {number} b + * @returns {number} + */ +function numerical(a, b) { + return a - b +} + +/** + * @param {string} value + * @param {string} after + * @returns {string} + */ +function escapeBackslashes(value, after) { + const expression = /\\(?=[!-/:-@[-`{-~])/g + /** @type {Array} */ + const positions = [] + /** @type {Array} */ + const results = [] + const whole = value + after + let index = -1 + let start = 0 + /** @type {RegExpExecArray | null} */ + let match + + while ((match = expression.exec(whole))) { + positions.push(match.index) + } + + while (++index < positions.length) { + if (start !== positions[index]) { + results.push(value.slice(start, positions[index])) + } + + results.push('\\') + start = positions[index] + } + + results.push(value.slice(start)) + + return results.join('') +} diff --git a/node_modules/mdast-util-to-markdown/lib/util/track.d.ts b/node_modules/mdast-util-to-markdown/lib/util/track.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..200d47c6fc1cf9dc409aa8763e40a37bae925141 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/track.d.ts @@ -0,0 +1,2 @@ +export function track(info: import("../types.js").TrackFields): import("../types.js").Tracker; +//# sourceMappingURL=track.d.ts.map \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/track.d.ts.map b/node_modules/mdast-util-to-markdown/lib/util/track.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..f52694e0a8d3c47c93e41e11441208583bd27b3a --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/track.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"track.d.ts","sourceRoot":"","sources":["track.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/mdast-util-to-markdown/lib/util/track.js b/node_modules/mdast-util-to-markdown/lib/util/track.js new file mode 100644 index 0000000000000000000000000000000000000000..178d2e8e062c3772a7d30c16e6e614c7dfb7814c --- /dev/null +++ b/node_modules/mdast-util-to-markdown/lib/util/track.js @@ -0,0 +1,55 @@ +/** + * @import {CreateTracker, TrackCurrent, TrackMove, TrackShift} from '../types.js' + */ + +/** + * Track positional info in the output. + * + * @type {CreateTracker} + */ +export function track(config) { + // Defaults are used to prevent crashes when older utilities somehow activate + // this code. + /* c8 ignore next 5 */ + const options = config || {} + const now = options.now || {} + let lineShift = options.lineShift || 0 + let line = now.line || 1 + let column = now.column || 1 + + return {move, current, shift} + + /** + * Get the current tracked info. + * + * @type {TrackCurrent} + */ + function current() { + return {now: {line, column}, lineShift} + } + + /** + * Define an increased line shift (the typical indent for lines). + * + * @type {TrackShift} + */ + function shift(value) { + lineShift += value + } + + /** + * Move past some generated markdown. + * + * @type {TrackMove} + */ + function move(input) { + // eslint-disable-next-line unicorn/prefer-default-parameters + const value = input || '' + const chunks = value.split(/\r?\n|\r/g) + const tail = chunks[chunks.length - 1] + line += chunks.length - 1 + column = + chunks.length === 1 ? column + tail.length : 1 + tail.length + lineShift + return value + } +} diff --git a/node_modules/mdast-util-to-markdown/license b/node_modules/mdast-util-to-markdown/license new file mode 100644 index 0000000000000000000000000000000000000000..bc8f165a62768a19de38901d81ac662c51ff29db --- /dev/null +++ b/node_modules/mdast-util-to-markdown/license @@ -0,0 +1,22 @@ +(The MIT License) + +Copyright (c) Titus Wormer + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/mdast-util-to-markdown/package.json b/node_modules/mdast-util-to-markdown/package.json new file mode 100644 index 0000000000000000000000000000000000000000..e6036c90373807540c008b5df69a0b24422a61c1 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/package.json @@ -0,0 +1,132 @@ +{ + "author": "Titus Wormer (https://wooorm.com)", + "bugs": "https://github.com/syntax-tree/mdast-util-to-markdown/issues", + "contributors": [ + "Titus Wormer (https://wooorm.com)" + ], + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "longest-streak": "^3.0.0", + "mdast-util-phrasing": "^4.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "unist-util-visit": "^5.0.0", + "zwitch": "^2.0.0" + }, + "description": "mdast utility to serialize markdown", + "devDependencies": { + "@types/node": "^22.0.0", + "c8": "^10.0.0", + "mdast-util-from-markdown": "^2.0.0", + "prettier": "^3.0.0", + "remark-cli": "^12.0.0", + "remark-preset-wooorm": "^10.0.0", + "type-coverage": "^2.0.0", + "typescript": "^5.0.0", + "unist-util-remove-position": "^5.0.0", + "xo": "^0.59.0" + }, + "exports": "./index.js", + "files": [ + "lib/", + "index.d.ts", + "index.js" + ], + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + }, + "keywords": [ + "ast", + "compile", + "markdown", + "markup", + "mdast-util", + "mdast", + "serialize", + "stringify", + "syntax", + "tree", + "unist", + "utility", + "util" + ], + "license": "MIT", + "name": "mdast-util-to-markdown", + "prettier": { + "bracketSpacing": false, + "semi": false, + "singleQuote": true, + "tabWidth": 2, + "trailingComma": "none", + "useTabs": false + }, + "remarkConfig": { + "plugins": [ + "remark-preset-wooorm" + ] + }, + "repository": "syntax-tree/mdast-util-to-markdown", + "version": "2.1.2", + "scripts": { + "prepack": "npm run build && npm run format", + "build": "tsc --build --clean && tsc --build && type-coverage", + "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix", + "test-api": "node --conditions development test/index.js", + "test-coverage": "c8 --100 --reporter lcov npm run test-api", + "test": "npm run build && npm run format && npm run test-coverage" + }, + "sideEffects": false, + "typeCoverage": { + "atLeast": 100, + "ignoreFiles": [ + "lib/types.d.ts" + ], + "strict": true + }, + "type": "module", + "xo": { + "overrides": [ + { + "files": [ + "**/*.d.ts" + ], + "rules": { + "@typescript-eslint/array-type": [ + "error", + { + "default": "generic" + } + ], + "@typescript-eslint/ban-types": [ + "error", + { + "extendDefaults": true + } + ], + "@typescript-eslint/consistent-type-definitions": [ + "error", + "interface" + ] + } + }, + { + "files": [ + "test/**/*.js" + ], + "rules": { + "max-depth": "off", + "no-await-in-loop": "off" + } + } + ], + "prettier": true, + "rules": { + "complexity": "off", + "unicorn/prefer-at": "off", + "unicorn/prefer-code-point": "off" + } + } +} diff --git a/node_modules/mdast-util-to-markdown/readme.md b/node_modules/mdast-util-to-markdown/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..822dcbf50dc59054d82a6c51c34ef92652eb87b2 --- /dev/null +++ b/node_modules/mdast-util-to-markdown/readme.md @@ -0,0 +1,750 @@ +# mdast-util-to-markdown + +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][size-badge]][size] +[![Sponsors][sponsors-badge]][collective] +[![Backers][backers-badge]][collective] +[![Chat][chat-badge]][chat] + +**[mdast][]** utility that turns a syntax tree into markdown. + +## Contents + +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`toMarkdown(tree[, options])`](#tomarkdowntree-options) + * [`defaultHandlers`](#defaulthandlers) + * [`ConstructName`](#constructname) + * [`ConstructNameMap`](#constructnamemap) + * [`Handle`](#handle) + * [`Handlers`](#handlers) + * [`Info`](#info) + * [`Join`](#join) + * [`Map`](#map) + * [`Options`](#options) + * [`SafeConfig`](#safeconfig) + * [`State`](#state) + * [`Tracker`](#tracker) + * [`Unsafe`](#unsafe) +* [List of extensions](#list-of-extensions) +* [Syntax](#syntax) +* [Syntax tree](#syntax-tree) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Related](#related) +* [Contribute](#contribute) +* [License](#license) + +## What is this? + +This package is a utility that takes an [mdast][] syntax tree as input and turns +it into serialized markdown. + +This utility is a low level project. +It’s used in [`remark-stringify`][remark-stringify], which focusses on making it +easier to transform content by abstracting these internals away. + +## When should I use this? + +If you want to handle syntax trees manually, use this. +For an easier time processing content, use the **[remark][]** ecosystem instead. + +You can combine this utility with other utilities to add syntax extensions. +Notable examples that deeply integrate with it are +[`mdast-util-gfm`][mdast-util-gfm], +[`mdast-util-mdx`][mdast-util-mdx], +[`mdast-util-frontmatter`][mdast-util-frontmatter], +[`mdast-util-math`][mdast-util-math], and +[`mdast-util-directive`][mdast-util-directive]. + +## Install + +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: + +```sh +npm install mdast-util-to-markdown +``` + +In Deno with [`esm.sh`][esmsh]: + +```js +import {toMarkdown} from 'https://esm.sh/mdast-util-to-markdown@2' +``` + +In browsers with [`esm.sh`][esmsh]: + +```html + +``` + +## Use + +Say our module `example.js` looks as follows: + +```js +/** + * @import {Root} from 'mdast' + */ + +import {toMarkdown} from 'mdast-util-to-markdown' + +/** @type {Root} */ +const tree = { + type: 'root', + children: [ + { + type: 'blockquote', + children: [ + {type: 'thematicBreak'}, + { + type: 'paragraph', + children: [ + {type: 'text', value: '- a\nb !'}, + { + type: 'link', + url: 'example.com', + children: [{type: 'text', value: 'd'}] + } + ] + } + ] + } + ] +} + +console.log(toMarkdown(tree)) +``` + +…now running `node example.js` yields: + +```markdown +> *** +> +> \- a +> b \![d](example.com) +``` + +> 👉 **Note**: observe the properly escaped characters which would otherwise +> turn into a list and image respectively. + +## API + +This package exports the identifiers [`defaultHandlers`][api-default-handlers] +and [`toMarkdown`][api-to-markdown]. +There is no default export. + +### `toMarkdown(tree[, options])` + +Turn an **[mdast][]** syntax tree into markdown. + +###### Parameters + +* `tree` ([`Node`][node]) + — tree to serialize +* `options` ([`Options`][api-options], optional) + — configuration + +###### Returns + +Serialized markdown representing `tree` (`string`). + +### `defaultHandlers` + +Default (CommonMark) handlers ([`Handlers`][api-handlers]). + +### `ConstructName` + +Construct names for things generated by `mdast-util-to-markdown` (TypeScript +type). + +This is an enum of strings, each being a semantic label, useful to know when +serializing whether we’re for example in a double (`"`) or single (`'`) quoted +title. + +###### Type + +```ts +type ConstructName = ConstructNameMap[keyof ConstructNameMap] +``` + +### `ConstructNameMap` + +Interface of registered constructs (TypeScript type). + +###### Type + +```ts +interface ConstructNameMap { /* see code */ } +``` + +When working on extensions that use new constructs, extend the corresponding +interface to register its name: + +```ts +declare module 'mdast-util-to-markdown' { + interface ConstructNameMap { + // Register a new construct name (value is used, key should match it). + gfmStrikethrough: 'gfmStrikethrough' + } +} +``` + +### `Handle` + +Handle a particular node (TypeScript type). + +###### Parameters + +* `node` (`any`) + — expected mdast node +* `parent` ([`Node`][node], optional) + — parent of `node` +* `state` ([`State`][api-state]) + — info passed around about the current state +* `info` ([`Info`][api-info]) + — info on the surrounding of the node that is serialized + +###### Returns + +Serialized markdown representing `node` (`string`). + +### `Handlers` + +Handle particular nodes (TypeScript type). + +Each key is a node type (`Node['type']`), each value its corresponding handler +([`Handle`][api-handle]). + +###### Type + +```ts +type Handlers = Record +``` + +### `Info` + +Info on the surrounding of the node that is serialized (TypeScript type). + +###### Fields + +* `now` ([`Point`][point]) + — current point +* `lineShift` (`number`) + — number of columns each line will be shifted by wrapping nodes +* `before` (`string`) + — characters before this (guaranteed to be one, can be more) +* `after` (`string`) + — characters after this (guaranteed to be one, can be more) + +### `Join` + +How to join two blocks (TypeScript type). + +“Blocks” are typically joined by one blank line. +Sometimes it’s nicer to have them flush next to each other, yet other times +they cannot occur together at all. + +Join functions receive two adjacent siblings and their parent and what they +return defines how many blank lines to use between them. + +###### Parameters + +* `left` ([`Node`][node]) + — first of two adjacent siblings +* `right` ([`Node`][node]) + — second of two adjacent siblings +* `parent` ([`Node`][node]) + — parent of the two siblings +* `state` ([`State`][api-state]) + — info passed around about the current state + +###### Returns + +How many blank lines to use between the siblings (`boolean`, `number`, +optional). + +Where `true` is as passing `1` and `false` means the nodes cannot be +joined by a blank line, such as two adjacent block quotes or indented code +after a list, in which case a comment will be injected to break them up: + +```markdown +> Quote 1 + + + +> Quote 2 +``` + +> 👉 **Note**: abusing this feature will break markdown. +> One such example is when returning `0` for two paragraphs, which will result +> in the text running together, and in the future to be seen as one paragraph. + +### `Map` + +Map function to pad a single line (TypeScript type). + +###### Parameters + +* `value` (`string`) + — a single line of serialized markdown +* `line` (`number`) + — line number relative to the fragment +* `blank` (`boolean`) + — whether the line is considered blank in markdown + +###### Returns + +Padded line (`string`). + +### `Options` + +Configuration (TypeScript type). + +##### Fields + +The following fields influence how markdown is serialized. + +###### `options.bullet` + +Marker to use for bullets of items in unordered lists (`'*'`, `'+'`, or `'-'`, +default: `'*'`). + +There are three cases where the primary bullet cannot be used: + +* when three or more list items are on their own, the last one is empty, and + `bullet` is also a valid `rule`: `* - +`; this would turn into a thematic + break if serialized with three primary bullets; `bulletOther` is used for + the last item +* when a thematic break is the first child of a list item and `bullet` is the + same character as `rule`: `- ***`; this would turn into a single thematic + break if serialized with primary bullets; `bulletOther` is used for the + item +* when two unordered lists appear next to each other: `* a\n- b`; + `bulletOther` is used for such lists + +###### `options.bulletOther` + +Marker to use in certain cases where the primary bullet doesn’t work (`'*'`, +`'+'`, or `'-'`, default: `'-'` when `bullet` is `'*'`, `'*'` otherwise). + +Cannot be equal to `bullet`. + +###### `options.bulletOrdered` + +Marker to use for bullets of items in ordered lists (`'.'` or `')'`, default: +`'.'`). + +There is one case where the primary bullet for ordered items cannot be used: + +* when two ordered lists appear next to each other: `1. a\n2) b`; to solve + that, `'.'` will be used when `bulletOrdered` is `')'`, and `'.'` otherwise + +###### `options.closeAtx` + +Whether to add the same number of number signs (`#`) at the end of an ATX +heading as the opening sequence (`boolean`, default: `false`). + +###### `options.emphasis` + +Marker to use for emphasis (`'*'` or `'_'`, default: `'*'`). + +###### `options.fence` + +Marker to use for fenced code (``'`'`` or `'~'`, default: ``'`'``). + +###### `options.fences` + +Whether to use fenced code always (`boolean`, default: `true`). +The default is to use fenced code if there is a language defined, if the code is +empty, or if it starts or ends in blank lines. + +###### `options.incrementListMarker` + +Whether to increment the counter of ordered lists items (`boolean`, default: +`true`). + +###### `options.listItemIndent` + +How to indent the content of list items (`'mixed'`, `'one'`, or `'tab'`, +default: `'one'`). +Either with the size of the bullet plus one space (when `'one'`), a tab stop +(`'tab'`), or depending on the item and its parent list (`'mixed'`, uses `'one'` +if the item and list are tight and `'tab'` otherwise). + +###### `options.quote` + +Marker to use for titles (`'"'` or `"'"`, default: `'"'`). + +###### `options.resourceLink` + +Whether to always use resource links (`boolean`, default: `false`). +The default is to use autolinks (``) when possible +and resource links (`[text](url)`) otherwise. + +###### `options.rule` + +Marker to use for thematic breaks (`'*'`, `'-'`, or `'_'`, default: `'*'`). + +###### `options.ruleRepetition` + +Number of markers to use for thematic breaks (`number`, default: `3`, min: `3`). + +###### `options.ruleSpaces` + +Whether to add spaces between markers in thematic breaks (`boolean`, default: +`false`). + +###### `options.setext` + +Whether to use setext headings when possible (`boolean`, default: `false`). +The default is to always use ATX headings (`# heading`) instead of setext +headings (`heading\n=======`). +Setext headings cannot be used for empty headings or headings with a rank of +three or more. + +###### `options.strong` + +Marker to use for strong (`'*'` or `'_'`, default: `'*'`). + +###### `options.tightDefinitions` + +Whether to join definitions without a blank line (`boolean`, default: `false`). + +The default is to add blank lines between any flow (“block”) construct. +Turning this option on is a shortcut for a [`Join`][api-join] function like so: + +```js +function joinTightDefinitions(left, right) { + if (left.type === 'definition' && right.type === 'definition') { + return 0 + } +} +``` + +###### `options.handlers` + +Handle particular nodes ([`Handlers`][api-handlers], optional). + +###### `options.join` + +How to join blocks ([`Array`][api-join], optional). + +###### `options.unsafe` + +Schemas that define when characters cannot occur +([`Array`][api-unsafe], optional). + +###### `options.extensions` + +List of extensions (`Array`, default: `[]`). +Each extension is an object with the same interface as `Options` itself. + +### `SafeConfig` + +Configuration passed to `state.safe` (TypeScript type). + +###### Fields + +* `before` (`string`) + — characters before this (guaranteed to be one, can be more) +* `after` (`string`) + — characters after this (guaranteed to be one, can be more) +* `encode` (`Array`, optional) + — extra characters that *must* be encoded (as character references) instead + of escaped (character escapes). + Only ASCII punctuation will use character escapes, so you never need to + pass non-ASCII-punctuation here + +### `State` + +Info passed around about the current state (TypeScript type). + +###### Fields + +* `stack` ([`Array`][api-construct-name]) + — stack of constructs we’re in +* `indexStack` (`Array`) + — positions of child nodes in their parents +* `associationId` (`(node: Association) => string`) + — get an identifier from an association to match it to others (see + [`Association`][association]) +* `enter` (`(construct: ConstructName) => () => undefined`) + — enter a construct (returns a corresponding exit function) + (see [`ConstructName`][api-construct-name]) +* `indentLines` (`(value: string, map: Map) => string`) + — pad serialized markdown (see [`Map`][api-map]) +* `compilePattern` (`(pattern: Unsafe) => RegExp`) + — compile an unsafe pattern to a regex (see [`Unsafe`][api-unsafe]) +* `containerFlow` (`(parent: Node, info: Info) => string`) + — serialize flow children (see [`Info`][api-info]) +* `containerPhrasing` (`(parent: Node, info: Info) => string`) + — serialize phrasing children (see [`Info`][api-info]) +* `createTracker` (`(info: Info) => Tracker`) + — track positional info in the output (see [`Info`][api-info], + [`Tracker`][api-tracker]) +* `safe` (`(value: string, config: SafeConfig) => string`) + — make a string safe for embedding (see [`SafeConfig`][api-safe-config]) +* `options` ([`Options`][api-options]) + — applied user configuration +* `unsafe` ([`Array`][api-unsafe]) + — applied unsafe patterns +* `join` ([`Array`][api-join]) + — applied join handlers +* `handle` ([`Handle`][api-handle]) + — call the configured handler for the given node +* `handlers` ([`Handlers`][api-handlers]) + — applied handlers +* `bulletCurrent` (`string` or `undefined`) + — list marker currently in use +* `bulletLastUsed` (`string` or `undefined`) + — list marker previously in use + +### `Tracker` + +Track positional info in the output (TypeScript type). + +This info isn’t used yet but such functionality will allow line wrapping, +source maps, etc. + +###### Fields + +* `current` (`() => Info`) + — get current tracked info +* `shift` (`(value: number) => undefined`) + — define a relative increased line shift (the typical indent for lines) +* `move` (`(value: string) => string`) + — move past some generated markdown + +### `Unsafe` + +Schema that defines when a character cannot occur (TypeScript type). + +###### Fields + +* `character` (`string`) + — single unsafe character +* `inConstruct` ([`Array`][api-construct-name], + `ConstructName`, optional) + — constructs where this is bad +* `notInConstruct` ([`Array`][api-construct-name], + `ConstructName`, optional) + — constructs where this is fine again +* `before` (`string`, optional) + — `character` is bad when this is before it (cannot be used together with + `atBreak`) +* `after` (`string`, optional) + — `character` is bad when this is after it +* `atBreak` (`boolean`, optional) + — `character` is bad at a break (cannot be used together with `before`) + +## List of extensions + +* [`syntax-tree/mdast-util-directive`](https://github.com/syntax-tree/mdast-util-directive) + — directives +* [`syntax-tree/mdast-util-frontmatter`](https://github.com/syntax-tree/mdast-util-frontmatter) + — frontmatter (YAML, TOML, more) +* [`syntax-tree/mdast-util-gfm`](https://github.com/syntax-tree/mdast-util-gfm) + — GFM +* [`syntax-tree/mdast-util-gfm-autolink-literal`](https://github.com/syntax-tree/mdast-util-gfm-autolink-literal) + — GFM autolink literals +* [`syntax-tree/mdast-util-gfm-footnote`](https://github.com/syntax-tree/mdast-util-gfm-footnote) + — GFM footnotes +* [`syntax-tree/mdast-util-gfm-strikethrough`](https://github.com/syntax-tree/mdast-util-gfm-strikethrough) + — GFM strikethrough +* [`syntax-tree/mdast-util-gfm-table`](https://github.com/syntax-tree/mdast-util-gfm-table) + — GFM tables +* [`syntax-tree/mdast-util-gfm-task-list-item`](https://github.com/syntax-tree/mdast-util-gfm-task-list-item) + — GFM task list items +* [`syntax-tree/mdast-util-math`](https://github.com/syntax-tree/mdast-util-math) + — math +* [`syntax-tree/mdast-util-mdx`](https://github.com/syntax-tree/mdast-util-mdx) + — MDX +* [`syntax-tree/mdast-util-mdx-expression`](https://github.com/syntax-tree/mdast-util-mdx-expression) + — MDX expressions +* [`syntax-tree/mdast-util-mdx-jsx`](https://github.com/syntax-tree/mdast-util-mdx-jsx) + — MDX JSX +* [`syntax-tree/mdast-util-mdxjs-esm`](https://github.com/syntax-tree/mdast-util-mdxjs-esm) + — MDX ESM + +## Syntax + +Markdown is serialized according to CommonMark but care is taken to format in +such a way that the resulting markdown should work with most markdown parsers. +Extensions can add support for custom syntax. + +## Syntax tree + +The syntax tree is [mdast][]. + +## Types + +This package is fully typed with [TypeScript][]. +It exports the additional types +[`ConstructName`][api-construct-name], +[`ConstructNameMap`][api-construct-name-map], +[`Handle`][api-handle], +[`Handlers`][api-handlers], +[`Info`][api-info], +[`Join`][api-join], +[`Map`][api-map], +[`Options`][api-options], +[`SafeConfig`][api-safe-config], +[`State`][api-State], and +[`Unsafe`][api-Unsafe]. + +## Compatibility + +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. + +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, `mdast-util-to-markdown@^2`, +compatible with Node.js 16. + +## Security + +`mdast-util-to-markdown` will do its best to serialize markdown to match the +syntax tree, but there are several cases where that is impossible. +It’ll do its best, but complete roundtripping is impossible given that any value +could be injected into the tree. + +As markdown is sometimes used for HTML, and improper use of HTML can open you up +to a [cross-site scripting (XSS)][xss] attack, use of `mdast-util-to-markdown` +and parsing it again later could potentially be unsafe. +When parsing markdown afterwards and then going to HTML, use something like +[`hast-util-sanitize`][hast-util-sanitize] to make the tree safe. + +## Related + +* [`syntax-tree/mdast-util-from-markdown`](https://github.com/syntax-tree/mdast-util-from-markdown) + — parse markdown to mdast +* [`micromark/micromark`](https://github.com/micromark/micromark) + — parse markdown +* [`remarkjs/remark`](https://github.com/remarkjs/remark) + — process markdown + +## Contribute + +See [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for +ways to get started. +See [`support.md`][support] for ways to get help. + +This project has a [code of conduct][coc]. +By interacting with this repository, organization, or community you agree to +abide by its terms. + +## License + +[MIT][license] © [Titus Wormer][author] + + + +[build-badge]: https://github.com/syntax-tree/mdast-util-to-markdown/workflows/main/badge.svg + +[build]: https://github.com/syntax-tree/mdast-util-to-markdown/actions + +[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/mdast-util-to-markdown.svg + +[coverage]: https://codecov.io/github/syntax-tree/mdast-util-to-markdown + +[downloads-badge]: https://img.shields.io/npm/dm/mdast-util-to-markdown.svg + +[downloads]: https://www.npmjs.com/package/mdast-util-to-markdown + +[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=mdast-util-to-markdown + +[size]: https://bundlejs.com/?q=mdast-util-to-markdown + +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg + +[backers-badge]: https://opencollective.com/unified/backers/badge.svg + +[collective]: https://opencollective.com/unified + +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg + +[chat]: https://github.com/syntax-tree/unist/discussions + +[npm]: https://docs.npmjs.com/cli/install + +[esmsh]: https://esm.sh + +[license]: license + +[author]: https://wooorm.com + +[health]: https://github.com/syntax-tree/.github + +[contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md + +[support]: https://github.com/syntax-tree/.github/blob/main/support.md + +[coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md + +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c + +[typescript]: https://www.typescriptlang.org + +[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting + +[hast-util-sanitize]: https://github.com/syntax-tree/hast-util-sanitize + +[point]: https://github.com/syntax-tree/unist#point + +[mdast]: https://github.com/syntax-tree/mdast + +[node]: https://github.com/syntax-tree/mdast#nodes + +[association]: https://github.com/syntax-tree/mdast#association + +[mdast-util-gfm]: https://github.com/syntax-tree/mdast-util-gfm + +[mdast-util-mdx]: https://github.com/syntax-tree/mdast-util-mdx + +[mdast-util-frontmatter]: https://github.com/syntax-tree/mdast-util-frontmatter + +[mdast-util-math]: https://github.com/syntax-tree/mdast-util-math + +[mdast-util-directive]: https://github.com/syntax-tree/mdast-util-directive + +[remark]: https://github.com/remarkjs/remark + +[remark-stringify]: https://github.com/remarkjs/remark/tree/main/packages/remark-stringify + +[api-construct-name]: #constructname + +[api-construct-name-map]: #constructnamemap + +[api-default-handlers]: #defaulthandlers + +[api-handle]: #handle + +[api-handlers]: #handlers + +[api-info]: #info + +[api-join]: #join + +[api-map]: #map + +[api-options]: #options + +[api-safe-config]: #safeconfig + +[api-state]: #state + +[api-to-markdown]: #tomarkdowntree-options + +[api-tracker]: #tracker + +[api-unsafe]: #unsafe diff --git a/node_modules/mdast-util-to-string/index.d.ts b/node_modules/mdast-util-to-string/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..d4a39692a7b501c7c926c70e87f79349d03c7b3a --- /dev/null +++ b/node_modules/mdast-util-to-string/index.d.ts @@ -0,0 +1,2 @@ +export {toString} from './lib/index.js' +export type Options = import('./lib/index.js').Options diff --git a/node_modules/mdast-util-to-string/index.js b/node_modules/mdast-util-to-string/index.js new file mode 100644 index 0000000000000000000000000000000000000000..8674f309820fa07b789df535f42b90f161e228fe --- /dev/null +++ b/node_modules/mdast-util-to-string/index.js @@ -0,0 +1,5 @@ +/** + * @typedef {import('./lib/index.js').Options} Options + */ + +export {toString} from './lib/index.js' diff --git a/node_modules/mdast-util-to-string/lib/index.d.ts b/node_modules/mdast-util-to-string/lib/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..f9d483a63456a078e12fedffcf0cec480e254c95 --- /dev/null +++ b/node_modules/mdast-util-to-string/lib/index.d.ts @@ -0,0 +1,31 @@ +/** + * Get the text content of a node or list of nodes. + * + * Prefers the node’s plain-text fields, otherwise serializes its children, + * and if the given value is an array, serialize the nodes in it. + * + * @param {unknown} [value] + * Thing to serialize, typically `Node`. + * @param {Options | null | undefined} [options] + * Configuration (optional). + * @returns {string} + * Serialized `value`. + */ +export function toString( + value?: unknown, + options?: Options | null | undefined +): string +export type Nodes = import('mdast').Nodes +/** + * Configuration (optional). + */ +export type Options = { + /** + * Whether to use `alt` for `image`s (default: `true`). + */ + includeImageAlt?: boolean | null | undefined + /** + * Whether to use `value` of HTML (default: `true`). + */ + includeHtml?: boolean | null | undefined +} diff --git a/node_modules/mdast-util-to-string/lib/index.js b/node_modules/mdast-util-to-string/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..30a4ca664a3b2c2d579acb5e025c622429ce9b27 --- /dev/null +++ b/node_modules/mdast-util-to-string/lib/index.js @@ -0,0 +1,108 @@ +/** + * @typedef {import('mdast').Nodes} Nodes + * + * @typedef Options + * Configuration (optional). + * @property {boolean | null | undefined} [includeImageAlt=true] + * Whether to use `alt` for `image`s (default: `true`). + * @property {boolean | null | undefined} [includeHtml=true] + * Whether to use `value` of HTML (default: `true`). + */ + +/** @type {Options} */ +const emptyOptions = {} + +/** + * Get the text content of a node or list of nodes. + * + * Prefers the node’s plain-text fields, otherwise serializes its children, + * and if the given value is an array, serialize the nodes in it. + * + * @param {unknown} [value] + * Thing to serialize, typically `Node`. + * @param {Options | null | undefined} [options] + * Configuration (optional). + * @returns {string} + * Serialized `value`. + */ +export function toString(value, options) { + const settings = options || emptyOptions + const includeImageAlt = + typeof settings.includeImageAlt === 'boolean' + ? settings.includeImageAlt + : true + const includeHtml = + typeof settings.includeHtml === 'boolean' ? settings.includeHtml : true + + return one(value, includeImageAlt, includeHtml) +} + +/** + * One node or several nodes. + * + * @param {unknown} value + * Thing to serialize. + * @param {boolean} includeImageAlt + * Include image `alt`s. + * @param {boolean} includeHtml + * Include HTML. + * @returns {string} + * Serialized node. + */ +function one(value, includeImageAlt, includeHtml) { + if (node(value)) { + if ('value' in value) { + return value.type === 'html' && !includeHtml ? '' : value.value + } + + if (includeImageAlt && 'alt' in value && value.alt) { + return value.alt + } + + if ('children' in value) { + return all(value.children, includeImageAlt, includeHtml) + } + } + + if (Array.isArray(value)) { + return all(value, includeImageAlt, includeHtml) + } + + return '' +} + +/** + * Serialize a list of nodes. + * + * @param {Array} values + * Thing to serialize. + * @param {boolean} includeImageAlt + * Include image `alt`s. + * @param {boolean} includeHtml + * Include HTML. + * @returns {string} + * Serialized nodes. + */ +function all(values, includeImageAlt, includeHtml) { + /** @type {Array} */ + const result = [] + let index = -1 + + while (++index < values.length) { + result[index] = one(values[index], includeImageAlt, includeHtml) + } + + return result.join('') +} + +/** + * Check if `value` looks like a node. + * + * @param {unknown} value + * Thing. + * @returns {value is Nodes} + * Whether `value` is a node. + */ +function node(value) { + return Boolean(value && typeof value === 'object') +} diff --git a/node_modules/mdast-util-to-string/license b/node_modules/mdast-util-to-string/license new file mode 100644 index 0000000000000000000000000000000000000000..32e7a3d93ca5a2b8cce57405841a44e78f3fbb55 --- /dev/null +++ b/node_modules/mdast-util-to-string/license @@ -0,0 +1,22 @@ +(The MIT License) + +Copyright (c) 2015 Titus Wormer + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/mdast-util-to-string/package.json b/node_modules/mdast-util-to-string/package.json new file mode 100644 index 0000000000000000000000000000000000000000..a2a88d48e352f026af618e5038bde4a351709a84 --- /dev/null +++ b/node_modules/mdast-util-to-string/package.json @@ -0,0 +1,78 @@ +{ + "name": "mdast-util-to-string", + "version": "4.0.0", + "description": "mdast utility to get the plain text content of a node", + "license": "MIT", + "keywords": [ + "unist", + "mdast", + "mdast-util", + "util", + "utility", + "markdown", + "node", + "string", + "serialize" + ], + "repository": "syntax-tree/mdast-util-to-string", + "bugs": "https://github.com/syntax-tree/mdast-util-to-string/issues", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + }, + "author": "Titus Wormer (https://wooorm.com)", + "contributors": [ + "Titus Wormer (https://wooorm.com)" + ], + "sideEffects": false, + "type": "module", + "exports": "./index.js", + "files": [ + "lib/", + "index.d.ts", + "index.js" + ], + "dependencies": { + "@types/mdast": "^4.0.0" + }, + "devDependencies": { + "@types/node": "^20.0.0", + "c8": "^8.0.0", + "prettier": "^2.0.0", + "remark-cli": "^11.0.0", + "remark-preset-wooorm": "^9.0.0", + "type-coverage": "^2.0.0", + "typescript": "^5.0.0", + "xo": "^0.54.0" + }, + "scripts": { + "prepack": "npm run build && npm run format", + "build": "tsc --build --clean && tsc --build && type-coverage", + "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", + "test-api": "node --conditions development test.js", + "test-coverage": "c8 --100 --reporter lcov npm run test-api", + "test": "npm run build && npm run format && npm run test-coverage" + }, + "prettier": { + "bracketSpacing": false, + "semi": false, + "singleQuote": true, + "tabWidth": 2, + "trailingComma": "none", + "useTabs": false + }, + "remarkConfig": { + "plugins": [ + "remark-preset-wooorm" + ] + }, + "typeCoverage": { + "atLeast": 100, + "detail": true, + "ignoreCatch": true, + "strict": true + }, + "xo": { + "prettier": true + } +} diff --git a/node_modules/mdast-util-to-string/readme.md b/node_modules/mdast-util-to-string/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..4d901234ad005acf4b43ecbf07320c9e7b67e48c --- /dev/null +++ b/node_modules/mdast-util-to-string/readme.md @@ -0,0 +1,218 @@ +# mdast-util-to-string + +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][size-badge]][size] +[![Sponsors][sponsors-badge]][collective] +[![Backers][backers-badge]][collective] +[![Chat][chat-badge]][chat] + +[mdast][] utility to get the text content of a node. + +## Contents + +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`toString(value[, options])`](#tostringvalue-options) + * [`Options`](#options) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Related](#related) +* [Contribute](#contribute) +* [License](#license) + +## What is this? + +This package is a tiny utility that gets the textual content of a node. + +## When should I use this? + +This utility is useful when you have a node, say a heading, and want to get the +text inside it. + +This package does not serialize markdown, that’s what +[`mdast-util-to-markdown`][mdast-util-to-markdown] does. + +Similar packages, [`hast-util-to-string`][hast-util-to-string] and +[`hast-util-to-text`][hast-util-to-text], do the same but on [hast][]. + +## Install + +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: + +```sh +npm install mdast-util-to-string +``` + +In Deno with [`esm.sh`][esmsh]: + +```js +import {toString} from 'https://esm.sh/mdast-util-to-string@4' +``` + +In browsers with [`esm.sh`][esmsh]: + +```html + +``` + +## Use + +```js +import {fromMarkdown} from 'mdast-util-from-markdown' +import {toString} from 'mdast-util-to-string' + +const tree = fromMarkdown('Some _emphasis_, **importance**, and `code`.') + +console.log(toString(tree)) // => 'Some emphasis, importance, and code.' +``` + +## API + +This package exports the identifier [`toString`][api-to-string]. +There is no default export. + +### `toString(value[, options])` + +Get the text content of a node or list of nodes. + +Prefers the node’s plain-text fields, otherwise serializes its children, +and if the given value is an array, serialize the nodes in it. + +###### Parameters + +* `value` (`unknown`) + — thing to serialize, typically [`Node`][node] +* `options` ([`Options`][api-options], optional) + — configuration + +###### Returns + +Serialized `value` (`string`). + +### `Options` + +Configuration (TypeScript type). + +###### Fields + +* `includeImageAlt` (`boolean`, default: `true`) + — whether to use `alt` for `image`s +* `includeHtml` (`boolean`, default: `true`) + — whether to use `value` of HTML + +## Types + +This package is fully typed with [TypeScript][]. +It exports the additional type [`Options`][api-options]. + +## Compatibility + +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. + +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, `mdast-util-to-string@^4`, +compatible with Node.js 16. + +## Security + +Use of `mdast-util-to-string` does not involve **[hast][]**, user content, or +change the tree, so there are no openings for [cross-site scripting (XSS)][xss] +attacks. + +## Related + +* [`hast-util-to-string`](https://github.com/wooorm/rehype-minify/tree/main/packages/hast-util-to-string) + — get text content in hast +* [`hast-util-to-text`](https://github.com/syntax-tree/hast-util-to-text) + — get text content in hast according to the `innerText` algorithm + +## Contribute + +See [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for +ways to get started. +See [`support.md`][support] for ways to get help. + +This project has a [code of conduct][coc]. +By interacting with this repository, organization, or community you agree to +abide by its terms. + +## License + +[MIT][license] © [Titus Wormer][author] + + + +[build-badge]: https://github.com/syntax-tree/mdast-util-to-string/workflows/main/badge.svg + +[build]: https://github.com/syntax-tree/mdast-util-to-string/actions + +[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/mdast-util-to-string.svg + +[coverage]: https://codecov.io/github/syntax-tree/mdast-util-to-string + +[downloads-badge]: https://img.shields.io/npm/dm/mdast-util-to-string.svg + +[downloads]: https://www.npmjs.com/package/mdast-util-to-string + +[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=mdast-util-to-string + +[size]: https://bundlejs.com/?q=mdast-util-to-string + +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg + +[backers-badge]: https://opencollective.com/unified/backers/badge.svg + +[collective]: https://opencollective.com/unified + +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg + +[chat]: https://github.com/syntax-tree/unist/discussions + +[npm]: https://docs.npmjs.com/cli/install + +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c + +[esmsh]: https://esm.sh + +[typescript]: https://www.typescriptlang.org + +[license]: license + +[author]: https://wooorm.com + +[health]: https://github.com/syntax-tree/.github + +[contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md + +[support]: https://github.com/syntax-tree/.github/blob/main/support.md + +[coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md + +[mdast]: https://github.com/syntax-tree/mdast + +[mdast-util-to-markdown]: https://github.com/syntax-tree/mdast-util-to-markdown + +[hast]: https://github.com/syntax-tree/hast + +[hast-util-to-string]: https://github.com/rehypejs/rehype-minify/tree/main/packages/hast-util-to-string + +[hast-util-to-text]: https://github.com/syntax-tree/hast-util-to-text + +[node]: https://github.com/syntax-tree/mdast#nodes + +[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting + +[api-to-string]: #tostringvalue-options + +[api-options]: #options diff --git a/node_modules/mdn-data/LICENSE b/node_modules/mdn-data/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..670154e3538863b2d9891fd5483160fbdfc89164 --- /dev/null +++ b/node_modules/mdn-data/LICENSE @@ -0,0 +1,116 @@ +CC0 1.0 Universal + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator and +subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for the +purpose of contributing to a commons of creative, cultural and scientific +works ("Commons") that the public can reliably and without fear of later +claims of infringement build upon, modify, incorporate in other works, reuse +and redistribute as freely as possible in any form whatsoever and for any +purposes, including without limitation commercial purposes. These owners may +contribute to the Commons to promote the ideal of a free culture and the +further production of creative, cultural and scientific works, or to gain +reputation or greater distribution for their Work in part through the use and +efforts of others. + +For these and/or other purposes and motivations, and without any expectation +of additional consideration or compensation, the person associating CC0 with a +Work (the "Affirmer"), to the extent that he or she is an owner of Copyright +and Related Rights in the Work, voluntarily elects to apply CC0 to the Work +and publicly distribute the Work under its terms, with knowledge of his or her +Copyright and Related Rights in the Work and the meaning and intended legal +effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not limited +to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, communicate, + and translate a Work; + + ii. moral rights retained by the original author(s) and/or performer(s); + + iii. publicity and privacy rights pertaining to a person's image or likeness + depicted in a Work; + + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + + v. rights protecting the extraction, dissemination, use and reuse of data in + a Work; + + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation thereof, + including any amended or successor version of such directive); and + + vii. other similar, equivalent or corresponding rights throughout the world + based on applicable law or treaty, and any national implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention of, +applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and +unconditionally waives, abandons, and surrenders all of Affirmer's Copyright +and Related Rights and associated claims and causes of action, whether now +known or unknown (including existing as well as future claims and causes of +action), in the Work (i) in all territories worldwide, (ii) for the maximum +duration provided by applicable law or treaty (including future time +extensions), (iii) in any current or future medium and for any number of +copies, and (iv) for any purpose whatsoever, including without limitation +commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes +the Waiver for the benefit of each member of the public at large and to the +detriment of Affirmer's heirs and successors, fully intending that such Waiver +shall not be subject to revocation, rescission, cancellation, termination, or +any other legal or equitable action to disrupt the quiet enjoyment of the Work +by the public as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason be +judged legally invalid or ineffective under applicable law, then the Waiver +shall be preserved to the maximum extent permitted taking into account +Affirmer's express Statement of Purpose. In addition, to the extent the Waiver +is so judged Affirmer hereby grants to each affected person a royalty-free, +non transferable, non sublicensable, non exclusive, irrevocable and +unconditional license to exercise Affirmer's Copyright and Related Rights in +the Work (i) in all territories worldwide, (ii) for the maximum duration +provided by applicable law or treaty (including future time extensions), (iii) +in any current or future medium and for any number of copies, and (iv) for any +purpose whatsoever, including without limitation commercial, advertising or +promotional purposes (the "License"). The License shall be deemed effective as +of the date CC0 was applied by Affirmer to the Work. Should any part of the +License for any reason be judged legally invalid or ineffective under +applicable law, such partial invalidity or ineffectiveness shall not +invalidate the remainder of the License, and in such case Affirmer hereby +affirms that he or she will not (i) exercise any of his or her remaining +Copyright and Related Rights in the Work or (ii) assert any associated claims +and causes of action with respect to the Work, in either case contrary to +Affirmer's express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + + b. Affirmer offers the Work as-is and makes no representations or warranties + of any kind concerning the Work, express, implied, statutory or otherwise, + including without limitation warranties of title, merchantability, fitness + for a particular purpose, non infringement, or the absence of latent or + other defects, accuracy, or the present or absence of errors, whether or not + discoverable, all to the greatest extent permissible under applicable law. + + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without limitation + any person's Copyright and Related Rights in the Work. Further, Affirmer + disclaims responsibility for obtaining any necessary consents, permissions + or other rights required for any use of the Work. + + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to this + CC0 or use of the Work. + +For more information, please see + diff --git a/node_modules/mdn-data/README.md b/node_modules/mdn-data/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6932b2c4f6c31c3abcdc35eb1461befc599fb960 --- /dev/null +++ b/node_modules/mdn-data/README.md @@ -0,0 +1,59 @@ +# Welcome to MDN data + +> **Note** +> We are in the process of deprecating the `mdn/data` package in favor of [`w3c/webref`](https://github.com/w3c/webref). +> If you depend on this project, let us know in our community [GitHub discussions](https://github.com/mdn/mdn-community/discussions/categories/platform). +> Thank you. + +[![NPM version](https://img.shields.io/npm/v/mdn-data.svg)](https://www.npmjs.com/package/mdn-data) +[![lint](https://github.com/mdn/data/actions/workflows/lint.yml/badge.svg)](https://github.com/mdn/data/actions/workflows/lint.yml) + +This repository contains general data for Web technologies and is maintained by the [MDN team at Mozilla](https://wiki.mozilla.org/MDN). + +## Repository contents + +The data in this repository is used in MDN Web Docs to build [information boxes](https://developer.mozilla.org/en-US/docs/Web/CSS/background) and [sidebar navigation](https://developer.mozilla.org/en-US/docs/Web/API/Window). +External tools make use of this data as well, for example, the [CSSTree](https://github.com/csstree/csstree/) CSS parser. + +There's a top-level directory for each broad area covered: for example, `api` and `css`. +Inside each of these directories is one or more JSON files containing the data. + +### api + +Contains data about Web APIs: + +- API inheritance (interface inheritance and mixin implementations) + +### css + +Contains data about: + +- CSS at-rules +- CSS functions +- CSS properties +- CSS selectors +- CSS syntaxes +- CSS types +- CSS units + +For more information, see the [CSS data](./css/README.md) documentation and the [Updating CSS JSON DB](./docs/updating_css_json.md) guide. + +### l10n + +The l10n folder contains localization strings that are used in the various +json files throughout this repository. + +## Problems? + +If you find a problem, please [file an issue](https://github.com/mdn/data/issues/new). + +## Contributing + +We're very happy to accept contributions to this data. +Please familiarize yourself with the schema for the data you're editing, and send us a pull request. +See the [CONTRIBUTING.md](./CONTRIBUTING.md) document for more information. + +## See also + +- [https://github.com/mdn/browser-compat-data](https://github.com/mdn/browser-compat-data) + for compatibility data for Web technologies diff --git a/node_modules/mdn-data/api/index.js b/node_modules/mdn-data/api/index.js new file mode 100644 index 0000000000000000000000000000000000000000..4c1ec9b670ea18dcbefa23e718c829ab8b872afc --- /dev/null +++ b/node_modules/mdn-data/api/index.js @@ -0,0 +1,3 @@ +module.exports = { + inheritance: require('./inheritance'), +} diff --git a/node_modules/mdn-data/api/inheritance.json b/node_modules/mdn-data/api/inheritance.json new file mode 100644 index 0000000000000000000000000000000000000000..c2097900f5e1914043ea46ff1b16758a60903573 --- /dev/null +++ b/node_modules/mdn-data/api/inheritance.json @@ -0,0 +1,2681 @@ +{ + "AbsoluteOrientationSensor": { + "inherits": "OrientationSensor", + "implements": [] + }, + "AbstractRange": { + "inherits": null, + "implements": [] + }, + "Accelerometer": { + "inherits": "Sensor", + "implements": [] + }, + "AmbientLightSensor": { + "inherits": "Sensor", + "implements": [] + }, + "AnalyserNode": { + "inherits": "AudioNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "AnimationEvent": { + "inherits": "Event", + "implements": [] + }, + "ArchiveRequest": { + "inherits": "DOMRequest", + "implements": [] + }, + "Attr": { + "inherits": "Node", + "implements": [] + }, + "AudioBufferSourceNode": { + "inherits": "AudioScheduledSourceNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "AudioChannelManager": { + "inherits": "EventTarget", + "implements": [] + }, + "AudioContext": { + "inherits": "BaseAudioContext", + "implements": [] + }, + "AudioDestinationNode": { + "inherits": "AudioNode", + "implements": [] + }, + "AudioNode": { + "inherits": "EventTarget", + "implements": [] + }, + "AudioProcessingEvent": { + "inherits": "Event", + "implements": [] + }, + "AudioScheduledSourceNode": { + "inherits": "AudioNode", + "implements": [] + }, + "AudioStreamTrack": { + "inherits": "MediaStreamTrack", + "implements": [] + }, + "AudioTrackList": { + "inherits": "EventTarget", + "implements": [] + }, + "AutocompleteErrorEvent": { + "inherits": "Event", + "implements": [] + }, + "BarProp": { + "inherits": null, + "implements": [] + }, + "BaseAudioContext": { + "inherits": "EventTarget", + "implements": [] + }, + "BatteryManager": { + "inherits": "EventTarget", + "implements": [] + }, + "BeforeAfterKeyboardEvent": { + "inherits": "KeyboardEvent", + "implements": [] + }, + "BeforeInstallPromptEvent": { + "inherits": "Event", + "implements": [] + }, + "BeforeUnloadEvent": { + "inherits": "Event", + "implements": [] + }, + "BiquadFilterNode": { + "inherits": "AudioNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "BlobEvent": { + "inherits": "Event", + "implements": [] + }, + "BluetoothAdapter": { + "inherits": "EventTarget", + "implements": [] + }, + "BluetoothAdapterEvent": { + "inherits": "Event", + "implements": [] + }, + "BluetoothAttributeEvent": { + "inherits": "Event", + "implements": [] + }, + "BluetoothDevice": { + "inherits": "EventTarget", + "implements": [] + }, + "BluetoothDeviceEvent": { + "inherits": "Event", + "implements": [] + }, + "BluetoothDiscoveryHandle": { + "inherits": "EventTarget", + "implements": [] + }, + "BluetoothDiscoveryStateChangedEvent": { + "inherits": "Event", + "implements": [] + }, + "BluetoothGatt": { + "inherits": "EventTarget", + "implements": [] + }, + "BluetoothManager": { + "inherits": "EventTarget", + "implements": [] + }, + "BluetoothPairingEvent": { + "inherits": "Event", + "implements": [] + }, + "BluetoothStatusChangedEvent": { + "inherits": "Event", + "implements": [] + }, + "BoxObject": { + "inherits": null, + "implements": [] + }, + "BroadcastChannel": { + "inherits": "EventTarget", + "implements": [] + }, + "BrowserElement": { + "inherits": null, + "implements": [ + "BrowserElementCommon", + "BrowserElementPrivileged" + ] + }, + "CDATASection": { + "inherits": "Text", + "implements": [] + }, + "CFStateChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "CSSCounterStyleRule": { + "inherits": "CSSRule", + "implements": [] + }, + "CSSFontFaceLoadEvent": { + "inherits": "Event", + "implements": [] + }, + "CSSImageValue": { + "inherits": "CSSStyleValue", + "implements": [] + }, + "CSSKeywordValue": { + "inherits": "CSSStyleValue", + "implements": [] + }, + "CSSMathInvert": { + "inherits": "CSSMathValue", + "implements": [] + }, + "CSSMathMax": { + "inherits": "CSSMathValue", + "implements": [] + }, + "CSSMathMin": { + "inherits": "CSSMathValue", + "implements": [] + }, + "CSSMathNegate": { + "inherits": "CSSMathValue", + "implements": [] + }, + "CSSMathProduct": { + "inherits": "CSSMathValue", + "implements": [] + }, + "CSSMathSum": { + "inherits": "CSSMathValue", + "implements": [] + }, + "CSSMathValue": { + "inherits": "CSSNumericValue", + "implements": [ + "CSSMathInvert", + "CSSMathMax", + "CSSMathMin", + "CSSMathNegate", + "CSSMathProduct", + "CSSMathSum" + ] + }, + "CSSMatrixComponent": { + "inherits": "CSSTransformComponent", + "implements": [] + }, + "CSSNumericValue": { + "inherits": "CSSStyleValue", + "implements": [ + "CSSMathValue", + "CSSUnitValue" + ] + }, + "CSSPerspective": { + "inherits": "CSSTransformComponent", + "implements": [] + }, + "CSSPositionValue": { + "inherits": "CSSStyleValue", + "implements": [] + }, + "CSSPrimitiveValue": { + "inherits": "CSSValue", + "implements": [] + }, + "CSSPseudoElement": { + "inherits": "EventTarget", + "implements": [ + "Animatable" + ] + }, + "CSSRotate": { + "inherits": "CSSTransformComponent", + "implements": [] + }, + "CSSScale": { + "inherits": "CSSTransformComponent", + "implements": [] + }, + "CSSSkew": { + "inherits": "CSSTransformComponent", + "implements": [] + }, + "CSSSkewX": { + "inherits": "CSSTransformComponent", + "implements": [] + }, + "CSSSkewY": { + "inherits": "CSSTransformComponent", + "implements": [] + }, + "CSSStyleDeclaration": { + "inherits": null, + "implements": [] + }, + "CSSStyleSheet": { + "inherits": "StyleSheet", + "implements": [] + }, + "CSSStyleValue": { + "inherits": null, + "implements": [ + "CSSImageValue", + "CSSKeywordValue", + "CSSNumericValue", + "CSSPositionValue", + "CSSTransformValue", + "CSSUnitValue", + "CSSUnparsedValue" + ] + }, + "CSSTransformComponent": { + "inherits": null, + "implements": [ + "CSSMatrixComponent", + "CSSPerspective", + "CSSRotate", + "CSSScale", + "CSSSkew", + "CSSSkewX", + "CSSSkewY", + "CSSTranslate" + ] + }, + "CSSTransformValue": { + "inherits": "CSSStyleValue", + "implements": [] + }, + "CSSTranslate": { + "inherits": "CSSTransformComponent", + "implements": [] + }, + "CSSUnitValue": { + "inherits": "CSSNumericValue", + "implements": [] + }, + "CSSUnparsedValue": { + "inherits": "CSSStyleValue", + "implements": [] + }, + "CSSValueList": { + "inherits": "CSSValue", + "implements": [] + }, + "CallEvent": { + "inherits": "Event", + "implements": [] + }, + "CallGroupErrorEvent": { + "inherits": "Event", + "implements": [] + }, + "CameraClosedEvent": { + "inherits": "Event", + "implements": [] + }, + "CameraConfigurationEvent": { + "inherits": "Event", + "implements": [] + }, + "CameraControl": { + "inherits": "MediaStream", + "implements": [] + }, + "CameraFacesDetectedEvent": { + "inherits": "Event", + "implements": [] + }, + "CameraStateChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "CanvasCaptureMediaStream": { + "inherits": "MediaStream", + "implements": [] + }, + "CaretPosition": { + "inherits": null, + "implements": [] + }, + "ChannelMergerNode": { + "inherits": "AudioNode", + "implements": [] + }, + "ChannelSplitterNode": { + "inherits": "AudioNode", + "implements": [] + }, + "CharacterData": { + "inherits": "Node", + "implements": [ + "ChildNode", + "NonDocumentTypeChildNode" + ] + }, + "ChromeWorker": { + "inherits": "Worker", + "implements": [] + }, + "Clipboard": { + "inherits": "EventTarget", + "implements": [] + }, + "ClipboardEvent": { + "inherits": "Event", + "implements": [] + }, + "CloseEvent": { + "inherits": "Event", + "implements": [] + }, + "CommandEvent": { + "inherits": "Event", + "implements": [] + }, + "Comment": { + "inherits": "CharacterData", + "implements": [] + }, + "CompositionEvent": { + "inherits": "UIEvent", + "implements": [] + }, + "ConstantSourceNode": { + "inherits": "AudioScheduledSourceNode", + "implements": [] + }, + "ContactManager": { + "inherits": "EventTarget", + "implements": [] + }, + "ContainerBoxObject": { + "inherits": "BoxObject", + "implements": [] + }, + "ConvolverNode": { + "inherits": "AudioNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "Crypto": { + "inherits": null, + "implements": [] + }, + "CustomEvent": { + "inherits": "Event", + "implements": [] + }, + "DOMApplication": { + "inherits": "EventTarget", + "implements": [] + }, + "DOMApplicationsManager": { + "inherits": "EventTarget", + "implements": [] + }, + "DOMCursor": { + "inherits": "EventTarget", + "implements": [ + "DOMRequestShared" + ] + }, + "DOMDownload": { + "inherits": "EventTarget", + "implements": [] + }, + "DOMDownloadManager": { + "inherits": "EventTarget", + "implements": [] + }, + "DOMException": { + "inherits": null, + "implements": [ + "ExceptionMembers" + ] + }, + "DOMImplementation": { + "inherits": null, + "implements": [] + }, + "DOMMatrix": { + "inherits": "DOMMatrixReadOnly", + "implements": [] + }, + "DOMMobileMessageError": { + "inherits": "DOMError", + "implements": [] + }, + "DOMParser": { + "inherits": null, + "implements": [] + }, + "DOMPoint": { + "inherits": "DOMPointReadOnly", + "implements": [] + }, + "DOMRect": { + "inherits": "DOMRectReadOnly", + "implements": [] + }, + "DOMRequest": { + "inherits": "EventTarget", + "implements": [ + "DOMRequestShared" + ] + }, + "DOMSettableTokenList": { + "inherits": "DOMTokenList", + "implements": [] + }, + "DOMStringMap": { + "inherits": null, + "implements": [] + }, + "DOMTokenList": { + "inherits": null, + "implements": [] + }, + "DOMTransactionEvent": { + "inherits": "Event", + "implements": [] + }, + "DataContainerEvent": { + "inherits": "Event", + "implements": [] + }, + "DataErrorEvent": { + "inherits": "Event", + "implements": [] + }, + "DataStore": { + "inherits": "EventTarget", + "implements": [] + }, + "DataStoreChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "DedicatedWorkerGlobalScope": { + "inherits": "WorkerGlobalScope", + "implements": [] + }, + "DelayNode": { + "inherits": "AudioNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "DesktopNotification": { + "inherits": "EventTarget", + "implements": [] + }, + "DeviceLightEvent": { + "inherits": "Event", + "implements": [] + }, + "DeviceMotionEvent": { + "inherits": "Event", + "implements": [] + }, + "DeviceOrientationEvent": { + "inherits": "Event", + "implements": [] + }, + "DeviceProximityEvent": { + "inherits": "Event", + "implements": [] + }, + "DeviceStorage": { + "inherits": "EventTarget", + "implements": [] + }, + "DeviceStorageChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "Document": { + "inherits": "Node", + "implements": [ + "FontFaceSource", + "GeometryUtils", + "GlobalEventHandlers", + "OnErrorEventHandlerForNodes", + "ParentNode", + "TouchEventHandlers", + "XPathEvaluator" + ] + }, + "DocumentFragment": { + "inherits": "Node", + "implements": [ + "ParentNode" + ] + }, + "DocumentType": { + "inherits": "Node", + "implements": [ + "ChildNode" + ] + }, + "DownloadEvent": { + "inherits": "Event", + "implements": [] + }, + "DragEvent": { + "inherits": "MouseEvent", + "implements": [] + }, + "DynamicsCompressorNode": { + "inherits": "AudioNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "Element": { + "inherits": "Node", + "implements": [ + "Animatable", + "ChildNode", + "GeometryUtils", + "NonDocumentTypeChildNode", + "ParentNode" + ] + }, + "EngineeringMode": { + "inherits": "EventTarget", + "implements": [] + }, + "ErrorEvent": { + "inherits": "Event", + "implements": [] + }, + "Event": { + "inherits": null, + "implements": [] + }, + "EventSource": { + "inherits": "EventTarget", + "implements": [] + }, + "Exception": { + "inherits": null, + "implements": [ + "ExceptionMembers" + ] + }, + "ExtendableEvent": { + "inherits": "Event", + "implements": [] + }, + "FMRadio": { + "inherits": "EventTarget", + "implements": [] + }, + "FetchEvent": { + "inherits": "Event", + "implements": [] + }, + "File": { + "inherits": "Blob", + "implements": [] + }, + "FileList": { + "inherits": null, + "implements": [] + }, + "FileReader": { + "inherits": "EventTarget", + "implements": [] + }, + "FocusEvent": { + "inherits": "UIEvent", + "implements": [] + }, + "FontFaceSet": { + "inherits": "EventTarget", + "implements": [] + }, + "FormData": { + "inherits": null, + "implements": [] + }, + "GainNode": { + "inherits": "AudioNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "GamepadAxisMoveEvent": { + "inherits": "GamepadEvent", + "implements": [] + }, + "GamepadButtonEvent": { + "inherits": "GamepadEvent", + "implements": [] + }, + "GamepadEvent": { + "inherits": "Event", + "implements": [] + }, + "Gyroscope": { + "inherits": "Sensor", + "implements": [] + }, + "HMDVRDevice": { + "inherits": "VRDevice", + "implements": [] + }, + "HTMLAnchorElement": { + "inherits": "HTMLElement", + "implements": [ + "HTMLHyperlinkElementUtils", + "URLUtilsSearchParams" + ] + }, + "HTMLAppletElement": { + "inherits": "HTMLElement", + "implements": [ + "MozFrameLoaderOwner", + "MozImageLoadingContent", + "MozObjectLoadingContent" + ] + }, + "HTMLAreaElement": { + "inherits": "HTMLElement", + "implements": [ + "HTMLHyperlinkElementUtils", + "URLUtilsSearchParams" + ] + }, + "HTMLAudioElement": { + "inherits": "HTMLMediaElement", + "implements": [] + }, + "HTMLBRElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLBaseElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLBodyElement": { + "inherits": "HTMLElement", + "implements": [ + "WindowEventHandlers" + ] + }, + "HTMLButtonElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLCanvasElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLCollection": { + "inherits": null, + "implements": [] + }, + "HTMLContentElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLDListElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLDataElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLDataListElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLDirectoryElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLDivElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLDocument": { + "inherits": "Document", + "implements": [] + }, + "HTMLElement": { + "inherits": "Element", + "implements": [ + "GlobalEventHandlers", + "OnErrorEventHandlerForNodes", + "TouchEventHandlers" + ] + }, + "HTMLEmbedElement": { + "inherits": "HTMLElement", + "implements": [ + "MozFrameLoaderOwner", + "MozImageLoadingContent", + "MozObjectLoadingContent" + ] + }, + "HTMLFieldSetElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLFontElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLFormControlsCollection": { + "inherits": "HTMLCollection", + "implements": [] + }, + "HTMLFormElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLFrameElement": { + "inherits": "HTMLElement", + "implements": [ + "MozFrameLoaderOwner" + ] + }, + "HTMLFrameSetElement": { + "inherits": "HTMLElement", + "implements": [ + "WindowEventHandlers" + ] + }, + "HTMLHRElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLHeadElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLHeadingElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLHtmlElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLIFrameElement": { + "inherits": "HTMLElement", + "implements": [ + "BrowserElement", + "MozFrameLoaderOwner" + ] + }, + "HTMLImageElement": { + "inherits": "HTMLElement", + "implements": [ + "MozImageLoadingContent" + ] + }, + "HTMLInputElement": { + "inherits": "HTMLElement", + "implements": [ + "MozImageLoadingContent", + "MozPhonetic" + ] + }, + "HTMLLIElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLLabelElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLLegendElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLLinkElement": { + "inherits": "HTMLElement", + "implements": [ + "LinkStyle" + ] + }, + "HTMLMapElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLMarqueeElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLMediaElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLMenuElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLMenuItemElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLMetaElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLMeterElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLModElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLOListElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLObjectElement": { + "inherits": "HTMLElement", + "implements": [ + "MozFrameLoaderOwner", + "MozImageLoadingContent", + "MozObjectLoadingContent" + ] + }, + "HTMLOptGroupElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLOptionElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLOptionsCollection": { + "inherits": "HTMLCollection", + "implements": [] + }, + "HTMLOutputElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLParagraphElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLParamElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLPictureElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLPreElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLProgressElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLPropertiesCollection": { + "inherits": "HTMLCollection", + "implements": [] + }, + "HTMLQuoteElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLScriptElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLSelectElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLShadowElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLSourceElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLSpanElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLStyleElement": { + "inherits": "HTMLElement", + "implements": [ + "LinkStyle" + ] + }, + "HTMLTableCaptionElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLTableCellElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLTableColElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLTableElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLTableRowElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLTableSectionElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLTemplateElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLTextAreaElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLTimeElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLTitleElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLTrackElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLUListElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLUnknownElement": { + "inherits": "HTMLElement", + "implements": [] + }, + "HTMLVideoElement": { + "inherits": "HTMLMediaElement", + "implements": [] + }, + "HashChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "History": { + "inherits": null, + "implements": [] + }, + "IDBCursorWithValue": { + "inherits": "IDBCursor", + "implements": [] + }, + "IDBDatabase": { + "inherits": "EventTarget", + "implements": [] + }, + "IDBFileHandle": { + "inherits": "EventTarget", + "implements": [] + }, + "IDBFileRequest": { + "inherits": "DOMRequest", + "implements": [] + }, + "IDBMutableFile": { + "inherits": "EventTarget", + "implements": [] + }, + "IDBOpenDBRequest": { + "inherits": "IDBRequest", + "implements": [] + }, + "IDBRequest": { + "inherits": "EventTarget", + "implements": [] + }, + "IDBTransaction": { + "inherits": "EventTarget", + "implements": [] + }, + "IDBVersionChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "IccCardLockError": { + "inherits": "DOMError", + "implements": [] + }, + "IccChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "ImageCapture": { + "inherits": "EventTarget", + "implements": [] + }, + "ImageCaptureErrorEvent": { + "inherits": "Event", + "implements": [] + }, + "ImageDocument": { + "inherits": "HTMLDocument", + "implements": [] + }, + "InputEvent": { + "inherits": "UIEvent", + "implements": [] + }, + "InstallEvent": { + "inherits": "ExtendableEvent", + "implements": [] + }, + "InstallTrigger": { + "inherits": null, + "implements": [] + }, + "KeyboardEvent": { + "inherits": "UIEvent", + "implements": [ + "KeyEvent" + ] + }, + "LinearAccelerationSensor": { + "inherits": "Accelerometer", + "implements": [] + }, + "ListBoxObject": { + "inherits": "BoxObject", + "implements": [] + }, + "LocalMediaStream": { + "inherits": "MediaStream", + "implements": [] + }, + "Location": { + "inherits": null, + "implements": [] + }, + "Magnetometer": { + "inherits": "Sensor", + "implements": [] + }, + "MediaDevices": { + "inherits": "EventTarget", + "implements": [] + }, + "MediaElementAudioSourceNode": { + "inherits": "AudioNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "MediaEncryptedEvent": { + "inherits": "Event", + "implements": [] + }, + "MediaKeyError": { + "inherits": "Event", + "implements": [] + }, + "MediaKeyMessageEvent": { + "inherits": "Event", + "implements": [] + }, + "MediaKeySession": { + "inherits": "EventTarget", + "implements": [] + }, + "MediaRecorder": { + "inherits": "EventTarget", + "implements": [] + }, + "MediaSource": { + "inherits": "EventTarget", + "implements": [] + }, + "MediaStream": { + "inherits": "EventTarget", + "implements": [] + }, + "MediaStreamAudioDestinationNode": { + "inherits": "AudioNode", + "implements": [] + }, + "MediaStreamAudioSourceNode": { + "inherits": "AudioNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "MediaStreamEvent": { + "inherits": "Event", + "implements": [] + }, + "MediaStreamTrackEvent": { + "inherits": "Event", + "implements": [] + }, + "MenuBoxObject": { + "inherits": "BoxObject", + "implements": [] + }, + "MerchantValidationEvent": { + "inherits": "Event", + "implements": [] + }, + "MessageEvent": { + "inherits": "Event", + "implements": [] + }, + "MessagePort": { + "inherits": "EventTarget", + "implements": [ + "Transferable" + ] + }, + "MimeTypeArray": { + "inherits": null, + "implements": [] + }, + "MouseEvent": { + "inherits": "UIEvent", + "implements": [] + }, + "MouseScrollEvent": { + "inherits": "MouseEvent", + "implements": [] + }, + "MozAbortablePromise": { + "inherits": "_Promise", + "implements": [] + }, + "MozActivity": { + "inherits": "DOMRequest", + "implements": [] + }, + "MozApplicationEvent": { + "inherits": "Event", + "implements": [] + }, + "MozCdmaIccInfo": { + "inherits": "MozIccInfo", + "implements": [] + }, + "MozCellBroadcast": { + "inherits": "EventTarget", + "implements": [] + }, + "MozCellBroadcastEvent": { + "inherits": "Event", + "implements": [] + }, + "MozClirModeEvent": { + "inherits": "Event", + "implements": [] + }, + "MozContactChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "MozEmergencyCbModeEvent": { + "inherits": "Event", + "implements": [] + }, + "MozGsmIccInfo": { + "inherits": "MozIccInfo", + "implements": [] + }, + "MozIcc": { + "inherits": "EventTarget", + "implements": [] + }, + "MozIccManager": { + "inherits": "EventTarget", + "implements": [] + }, + "MozInputMethod": { + "inherits": "EventTarget", + "implements": [] + }, + "MozInterAppMessageEvent": { + "inherits": "Event", + "implements": [] + }, + "MozInterAppMessagePort": { + "inherits": "EventTarget", + "implements": [] + }, + "MozMessageDeletedEvent": { + "inherits": "Event", + "implements": [] + }, + "MozMmsEvent": { + "inherits": "Event", + "implements": [] + }, + "MozMobileConnection": { + "inherits": "EventTarget", + "implements": [] + }, + "MozMobileMessageManager": { + "inherits": "EventTarget", + "implements": [] + }, + "MozNFC": { + "inherits": "EventTarget", + "implements": [ + "MozNFCManager" + ] + }, + "MozNFCPeerEvent": { + "inherits": "Event", + "implements": [] + }, + "MozNFCTagEvent": { + "inherits": "Event", + "implements": [] + }, + "MozOtaStatusEvent": { + "inherits": "Event", + "implements": [] + }, + "MozSettingsEvent": { + "inherits": "Event", + "implements": [] + }, + "MozSettingsTransactionEvent": { + "inherits": "Event", + "implements": [] + }, + "MozSmsEvent": { + "inherits": "Event", + "implements": [] + }, + "MozSpeakerManager": { + "inherits": "EventTarget", + "implements": [] + }, + "MozStkCommandEvent": { + "inherits": "Event", + "implements": [] + }, + "MozVoicemail": { + "inherits": "EventTarget", + "implements": [] + }, + "MozVoicemailEvent": { + "inherits": "Event", + "implements": [] + }, + "MozWifiConnectionInfoEvent": { + "inherits": "Event", + "implements": [] + }, + "MozWifiManager": { + "inherits": "EventTarget", + "implements": [] + }, + "MozWifiStationInfoEvent": { + "inherits": "Event", + "implements": [] + }, + "MozWifiStatusChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "MutationEvent": { + "inherits": "Event", + "implements": [] + }, + "MutationObserver": { + "inherits": null, + "implements": [] + }, + "MutationRecord": { + "inherits": null, + "implements": [] + }, + "NamedNodeMap": { + "inherits": null, + "implements": [] + }, + "Navigator": { + "inherits": null, + "implements": [ + "NavigatorBattery", + "NavigatorContentUtils", + "NavigatorDataStore", + "NavigatorFeatures", + "NavigatorGeolocation", + "NavigatorID", + "NavigatorLanguage", + "NavigatorMobileId", + "NavigatorOnLine", + "NavigatorStorageUtils" + ] + }, + "NetworkInformation": { + "inherits": "EventTarget", + "implements": [] + }, + "Node": { + "inherits": "EventTarget", + "implements": [] + }, + "NodeIterator": { + "inherits": null, + "implements": [] + }, + "NodeList": { + "inherits": null, + "implements": [] + }, + "Notification": { + "inherits": "EventTarget", + "implements": [] + }, + "NotifyPaintEvent": { + "inherits": "Event", + "implements": [] + }, + "OfflineAudioCompletionEvent": { + "inherits": "Event", + "implements": [] + }, + "OfflineAudioContext": { + "inherits": "BaseAudioContext", + "implements": [] + }, + "OfflineResourceList": { + "inherits": "EventTarget", + "implements": [] + }, + "OffscreenCanvas": { + "inherits": "EventTarget", + "implements": [] + }, + "OrientationSensor": { + "inherits": "Sensor", + "implements": [] + }, + "OscillatorNode": { + "inherits": "AudioNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "PageTransitionEvent": { + "inherits": "Event", + "implements": [] + }, + "PaintRequest": { + "inherits": null, + "implements": [] + }, + "PaintRequestList": { + "inherits": null, + "implements": [] + }, + "PannerNode": { + "inherits": "AudioNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "PaymentAddress": { + "inherits": null, + "implements": [] + }, + "PaymentMethodChangeEvent": { + "inherits": "PaymentRequestUpdateEvent", + "implements": [] + }, + "PaymentRequest": { + "inherits": "EventTarget", + "implements": [] + }, + "PaymentRequestUpdateEvent": { + "inherits": "Event", + "implements": [] + }, + "PaymentResponse": { + "inherits": "EventTarget", + "implements": [] + }, + "Performance": { + "inherits": null, + "implements": [] + }, + "PerformanceLongTaskTiming": { + "inherits": "PerformanceEntry", + "implements": [] + }, + "PerformanceMark": { + "inherits": "PerformanceEntry", + "implements": [] + }, + "PerformanceMeasure": { + "inherits": "PerformanceEntry", + "implements": [] + }, + "PerformanceNavigationTiming": { + "inherits": "PerformanceEntry", + "implements": [] + }, + "PerformancePaintTiming": { + "inherits": "PerformanceEntry", + "implements": [] + }, + "PerformanceResourceTiming": { + "inherits": "PerformanceEntry", + "implements": [] + }, + "Plugin": { + "inherits": null, + "implements": [] + }, + "PluginArray": { + "inherits": null, + "implements": [] + }, + "PluginCrashedEvent": { + "inherits": "Event", + "implements": [] + }, + "PointerEvent": { + "inherits": "MouseEvent", + "implements": [] + }, + "PopStateEvent": { + "inherits": "Event", + "implements": [] + }, + "PopupBlockedEvent": { + "inherits": "Event", + "implements": [] + }, + "PopupBoxObject": { + "inherits": "BoxObject", + "implements": [] + }, + "PositionSensorVRDevice": { + "inherits": "VRDevice", + "implements": [] + }, + "PresentationDeviceInfoManager": { + "inherits": "EventTarget", + "implements": [] + }, + "ProcessingInstruction": { + "inherits": "CharacterData", + "implements": [] + }, + "ProgressEvent": { + "inherits": "Event", + "implements": [] + }, + "PromiseRejectionEvent": { + "inherits": "Event", + "implements": [] + }, + "PropertyNodeList": { + "inherits": "NodeList", + "implements": [] + }, + "PseudoElement": { + "inherits": null, + "implements": [ + "GeometryUtils" + ] + }, + "RTCDTMFSender": { + "inherits": "EventTarget", + "implements": [] + }, + "RTCDTMFToneChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "RTCDataChannel": { + "inherits": "EventTarget", + "implements": [] + }, + "RTCDataChannelEvent": { + "inherits": "Event", + "implements": [] + }, + "RTCDtlsTransport": { + "inherits": "EventTarget", + "implements": [] + }, + "RTCIceTransport": { + "inherits": "EventTarget", + "implements": [] + }, + "RTCPeerConnection": { + "inherits": "EventTarget", + "implements": [] + }, + "RTCPeerConnectionIceEvent": { + "inherits": "Event", + "implements": [] + }, + "RTCPeerConnectionIdentityErrorEvent": { + "inherits": "Event", + "implements": [] + }, + "RTCPeerConnectionIdentityEvent": { + "inherits": "Event", + "implements": [] + }, + "RTCSctpTransport": { + "inherits": "EventTarget", + "implements": [] + }, + "RTCTrackEvent": { + "inherits": "Event", + "implements": [] + }, + "RadioNodeList": { + "inherits": "NodeList", + "implements": [] + }, + "Range": { + "inherits": "AbstractRange", + "implements": [] + }, + "RecordErrorEvent": { + "inherits": "Event", + "implements": [] + }, + "Rect": { + "inherits": null, + "implements": [] + }, + "RelativeOrientationSensor": { + "inherits": "OrientationSensor", + "implements": [] + }, + "Request": { + "inherits": null, + "implements": [ + "Body" + ] + }, + "Response": { + "inherits": null, + "implements": [ + "Body" + ] + }, + "StaticRange": { + "inherits": "AbstractRange", + "implements": [] + }, + "SVGAElement": { + "inherits": "SVGGraphicsElement", + "implements": [ + "SVGURIReference" + ] + }, + "SVGAltGlyphElement": { + "inherits": "SVGTextPositioningElement", + "implements": [ + "SVGURIReference" + ] + }, + "SVGAnimateElement": { + "inherits": "SVGAnimationElement", + "implements": [] + }, + "SVGAnimateMotionElement": { + "inherits": "SVGAnimationElement", + "implements": [] + }, + "SVGAnimateTransformElement": { + "inherits": "SVGAnimationElement", + "implements": [] + }, + "SVGAnimatedEnumeration": { + "inherits": null, + "implements": [] + }, + "SVGAnimatedInteger": { + "inherits": null, + "implements": [] + }, + "SVGAnimatedNumber": { + "inherits": null, + "implements": [] + }, + "SVGAnimatedNumberList": { + "inherits": null, + "implements": [] + }, + "SVGAnimatedPreserveAspectRatio": { + "inherits": null, + "implements": [] + }, + "SVGAnimatedString": { + "inherits": null, + "implements": [] + }, + "SVGAnimationElement": { + "inherits": "SVGElement", + "implements": [ + "SVGTests" + ] + }, + "SVGCircleElement": { + "inherits": "SVGGeometryElement", + "implements": [] + }, + "SVGClipPathElement": { + "inherits": "SVGElement", + "implements": [ + "SVGUnitTypes" + ] + }, + "SVGComponentTransferFunctionElement": { + "inherits": "SVGElement", + "implements": [] + }, + "SVGCursorElement": { + "inherits": "SVGElement", + "implements": [ + "SVGURIReference" + ] + }, + "SVGDefsElement": { + "inherits": "SVGGraphicsElement", + "implements": [] + }, + "SVGDescElement": { + "inherits": "SVGElement", + "implements": [] + }, + "SVGDocument": { + "inherits": "Document", + "implements": [] + }, + "SVGElement": { + "inherits": "Element", + "implements": [ + "GlobalEventHandlers", + "OnErrorEventHandlerForNodes", + "TouchEventHandlers" + ] + }, + "SVGEllipseElement": { + "inherits": "SVGGeometryElement", + "implements": [] + }, + "SVGFEBlendElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFEColorMatrixElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFEComponentTransferElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFECompositeElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFEConvolveMatrixElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFEDiffuseLightingElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFEDisplacementMapElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFEDistantLightElement": { + "inherits": "SVGElement", + "implements": [] + }, + "SVGFEDropShadowElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFEFloodElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFEFuncAElement": { + "inherits": "SVGComponentTransferFunctionElement", + "implements": [] + }, + "SVGFEFuncBElement": { + "inherits": "SVGComponentTransferFunctionElement", + "implements": [] + }, + "SVGFEFuncGElement": { + "inherits": "SVGComponentTransferFunctionElement", + "implements": [] + }, + "SVGFEFuncRElement": { + "inherits": "SVGComponentTransferFunctionElement", + "implements": [] + }, + "SVGFEGaussianBlurElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFEImageElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes", + "SVGURIReference" + ] + }, + "SVGFEMergeElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFEMergeNodeElement": { + "inherits": "SVGElement", + "implements": [] + }, + "SVGFEMorphologyElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFEOffsetElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFEPointLightElement": { + "inherits": "SVGElement", + "implements": [] + }, + "SVGFESpecularLightingElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFESpotLightElement": { + "inherits": "SVGElement", + "implements": [] + }, + "SVGFETileElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFETurbulenceElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFilterPrimitiveStandardAttributes" + ] + }, + "SVGFilterElement": { + "inherits": "SVGElement", + "implements": [ + "SVGURIReference", + "SVGUnitTypes" + ] + }, + "SVGForeignObjectElement": { + "inherits": "SVGGraphicsElement", + "implements": [] + }, + "SVGGElement": { + "inherits": "SVGGraphicsElement", + "implements": [] + }, + "SVGGeometryElement": { + "inherits": "SVGGraphicsElement", + "implements": [] + }, + "SVGGradientElement": { + "inherits": "SVGElement", + "implements": [ + "SVGURIReference", + "SVGUnitTypes" + ] + }, + "SVGGraphicsElement": { + "inherits": "SVGElement", + "implements": [ + "SVGTests" + ] + }, + "SVGImageElement": { + "inherits": "SVGGraphicsElement", + "implements": [ + "MozImageLoadingContent", + "SVGURIReference" + ] + }, + "SVGLengthList": { + "inherits": null, + "implements": [] + }, + "SVGLineElement": { + "inherits": "SVGGeometryElement", + "implements": [] + }, + "SVGLinearGradientElement": { + "inherits": "SVGGradientElement", + "implements": [] + }, + "SVGMPathElement": { + "inherits": "SVGElement", + "implements": [ + "SVGURIReference" + ] + }, + "SVGMarkerElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFitToViewBox" + ] + }, + "SVGMaskElement": { + "inherits": "SVGElement", + "implements": [ + "SVGUnitTypes" + ] + }, + "SVGMetadataElement": { + "inherits": "SVGElement", + "implements": [] + }, + "SVGNumberList": { + "inherits": null, + "implements": [] + }, + "SVGPathElement": { + "inherits": "SVGGeometryElement", + "implements": [ + "SVGAnimatedPathData" + ] + }, + "SVGPathSegArcAbs": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegArcRel": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegClosePath": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegCurvetoCubicAbs": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegCurvetoCubicRel": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegCurvetoCubicSmoothAbs": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegCurvetoCubicSmoothRel": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegCurvetoQuadraticAbs": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegCurvetoQuadraticRel": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegCurvetoQuadraticSmoothAbs": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegCurvetoQuadraticSmoothRel": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegLinetoAbs": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegLinetoHorizontalAbs": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegLinetoHorizontalRel": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegLinetoRel": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegLinetoVerticalAbs": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegLinetoVerticalRel": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegList": { + "inherits": null, + "implements": [] + }, + "SVGPathSegMovetoAbs": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPathSegMovetoRel": { + "inherits": "SVGPathSeg", + "implements": [] + }, + "SVGPatternElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFitToViewBox", + "SVGURIReference", + "SVGUnitTypes" + ] + }, + "SVGPoint": { + "inherits": null, + "implements": [] + }, + "SVGPointList": { + "inherits": null, + "implements": [] + }, + "SVGPolygonElement": { + "inherits": "SVGGeometryElement", + "implements": [ + "SVGAnimatedPoints" + ] + }, + "SVGPolylineElement": { + "inherits": "SVGGeometryElement", + "implements": [ + "SVGAnimatedPoints" + ] + }, + "SVGPreserveAspectRatio": { + "inherits": null, + "implements": [] + }, + "SVGRadialGradientElement": { + "inherits": "SVGGradientElement", + "implements": [] + }, + "SVGRect": { + "inherits": null, + "implements": [] + }, + "SVGRectElement": { + "inherits": "SVGGeometryElement", + "implements": [] + }, + "SVGSVGElement": { + "inherits": "SVGGraphicsElement", + "implements": [ + "SVGFitToViewBox", + "SVGZoomAndPan" + ] + }, + "SVGScriptElement": { + "inherits": "SVGElement", + "implements": [ + "SVGURIReference" + ] + }, + "SVGSetElement": { + "inherits": "SVGAnimationElement", + "implements": [] + }, + "SVGStopElement": { + "inherits": "SVGElement", + "implements": [] + }, + "SVGStringList": { + "inherits": null, + "implements": [] + }, + "SVGStyleElement": { + "inherits": "SVGElement", + "implements": [] + }, + "SVGSwitchElement": { + "inherits": "SVGGraphicsElement", + "implements": [] + }, + "SVGSymbolElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFitToViewBox", + "SVGTests" + ] + }, + "SVGTSpanElement": { + "inherits": "SVGTextPositioningElement", + "implements": [] + }, + "SVGTextContentElement": { + "inherits": "SVGGraphicsElement", + "implements": [] + }, + "SVGTextElement": { + "inherits": "SVGTextPositioningElement", + "implements": [] + }, + "SVGTextPathElement": { + "inherits": "SVGTextContentElement", + "implements": [ + "SVGURIReference" + ] + }, + "SVGTextPositioningElement": { + "inherits": "SVGTextContentElement", + "implements": [] + }, + "SVGTitleElement": { + "inherits": "SVGElement", + "implements": [] + }, + "SVGTransformList": { + "inherits": null, + "implements": [] + }, + "SVGUseElement": { + "inherits": "SVGGraphicsElement", + "implements": [ + "SVGURIReference" + ] + }, + "SVGViewElement": { + "inherits": "SVGElement", + "implements": [ + "SVGFitToViewBox", + "SVGZoomAndPan" + ] + }, + "SVGZoomEvent": { + "inherits": "UIEvent", + "implements": [] + }, + "Screen": { + "inherits": "EventTarget", + "implements": [] + }, + "ScriptProcessorNode": { + "inherits": "AudioNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "ScrollAreaEvent": { + "inherits": "UIEvent", + "implements": [] + }, + "ScrollBoxObject": { + "inherits": "BoxObject", + "implements": [] + }, + "ScrollViewChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "Selection": { + "inherits": null, + "implements": [] + }, + "SelectionStateChangedEvent": { + "inherits": "Event", + "implements": [] + }, + "Sensor": { + "inherits": "EventTarget", + "implements": [] + }, + "SensorErrorEvent": { + "inherits": "Event", + "implements": [] + }, + "ServiceWorker": { + "inherits": "EventTarget", + "implements": [ + "AbstractWorker" + ] + }, + "ServiceWorkerContainer": { + "inherits": "EventTarget", + "implements": [] + }, + "ServiceWorkerGlobalScope": { + "inherits": "WorkerGlobalScope", + "implements": [ + "GlobalFetch" + ] + }, + "ServiceWorkerRegistration": { + "inherits": "EventTarget", + "implements": [] + }, + "SettingsLock": { + "inherits": "EventTarget", + "implements": [] + }, + "SettingsManager": { + "inherits": "EventTarget", + "implements": [] + }, + "ShadowRoot": { + "inherits": "DocumentFragment", + "implements": [] + }, + "SharedWorker": { + "inherits": "EventTarget", + "implements": [ + "AbstractWorker" + ] + }, + "SharedWorkerGlobalScope": { + "inherits": "WorkerGlobalScope", + "implements": [] + }, + "SimpleGestureEvent": { + "inherits": "MouseEvent", + "implements": [] + }, + "SourceBuffer": { + "inherits": "EventTarget", + "implements": [] + }, + "SourceBufferList": { + "inherits": "EventTarget", + "implements": [] + }, + "SpeechRecognition": { + "inherits": "EventTarget", + "implements": [] + }, + "SpeechRecognitionError": { + "inherits": "Event", + "implements": [] + }, + "SpeechRecognitionEvent": { + "inherits": "Event", + "implements": [] + }, + "SpeechSynthesisEvent": { + "inherits": "Event", + "implements": [] + }, + "SpeechSynthesisUtterance": { + "inherits": "EventTarget", + "implements": [] + }, + "StereoPannerNode": { + "inherits": "AudioNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "StorageEvent": { + "inherits": "Event", + "implements": [] + }, + "StylePropertyMap": { + "inherits": "StylePropertyMapReadOnly", + "implements": [] + }, + "StylePropertyMapReadOnly": { + "inherits": null, + "implements": [ + "StylePropertyMap" + ] + }, + "StyleRuleChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "StyleSheet": { + "inherits": null, + "implements": [] + }, + "StyleSheetApplicableStateChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "StyleSheetChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "SyncEvent": { + "inherits": "ExtendableEvent", + "implements": [] + }, + "TVChannel": { + "inherits": "EventTarget", + "implements": [] + }, + "TVCurrentChannelChangedEvent": { + "inherits": "Event", + "implements": [] + }, + "TVCurrentSourceChangedEvent": { + "inherits": "Event", + "implements": [] + }, + "TVEITBroadcastedEvent": { + "inherits": "Event", + "implements": [] + }, + "TVManager": { + "inherits": "EventTarget", + "implements": [] + }, + "TVScanningStateChangedEvent": { + "inherits": "Event", + "implements": [] + }, + "TVSource": { + "inherits": "EventTarget", + "implements": [] + }, + "TVTuner": { + "inherits": "EventTarget", + "implements": [] + }, + "TaskAttributionTiming": { + "inherits": "PerformanceEntry", + "implements": [] + }, + "Telephony": { + "inherits": "EventTarget", + "implements": [] + }, + "TelephonyCall": { + "inherits": "EventTarget", + "implements": [] + }, + "TelephonyCallGroup": { + "inherits": "EventTarget", + "implements": [] + }, + "Text": { + "inherits": "CharacterData", + "implements": [ + "GeometryUtils" + ] + }, + "TextTrack": { + "inherits": "EventTarget", + "implements": [] + }, + "TextTrackList": { + "inherits": "EventTarget", + "implements": [] + }, + "TimeEvent": { + "inherits": "Event", + "implements": [] + }, + "Touch": { + "inherits": null, + "implements": [] + }, + "TouchEvent": { + "inherits": "UIEvent", + "implements": [] + }, + "TouchList": { + "inherits": null, + "implements": [] + }, + "TrackEvent": { + "inherits": "Event", + "implements": [] + }, + "TransitionEvent": { + "inherits": "Event", + "implements": [] + }, + "TreeBoxObject": { + "inherits": "BoxObject", + "implements": [] + }, + "TreeColumns": { + "inherits": null, + "implements": [] + }, + "TreeWalker": { + "inherits": null, + "implements": [] + }, + "UDPMessageEvent": { + "inherits": "Event", + "implements": [] + }, + "UDPSocket": { + "inherits": "EventTarget", + "implements": [] + }, + "UIEvent": { + "inherits": "Event", + "implements": [] + }, + "URL": { + "inherits": null, + "implements": [ + "URLUtils", + "URLUtilsSearchParams" + ] + }, + "USSDReceivedEvent": { + "inherits": "Event", + "implements": [] + }, + "UndoManager": { + "inherits": null, + "implements": [] + }, + "UserProximityEvent": { + "inherits": "Event", + "implements": [] + }, + "VRFieldOfView": { + "inherits": "VRFieldOfViewReadOnly", + "implements": [] + }, + "VTTCue": { + "inherits": "EventTarget", + "implements": [] + }, + "ValidityState": { + "inherits": null, + "implements": [] + }, + "VideoStreamTrack": { + "inherits": "MediaStreamTrack", + "implements": [] + }, + "VideoTrackList": { + "inherits": "EventTarget", + "implements": [] + }, + "WaveShaperNode": { + "inherits": "AudioNode", + "implements": [ + "AudioNodePassThrough" + ] + }, + "WebGL2RenderingContext": { + "inherits": "WebGLRenderingContext", + "implements": [] + }, + "WebGLContextEvent": { + "inherits": "Event", + "implements": [] + }, + "WebSocket": { + "inherits": "EventTarget", + "implements": [] + }, + "WheelEvent": { + "inherits": "MouseEvent", + "implements": [] + }, + "Window": { + "inherits": null, + "implements": [ + "ChromeWindow", + "GlobalCrypto", + "GlobalEventHandlers", + "OnErrorEventHandlerForWindow", + "SpeechSynthesisGetter", + "TouchEventHandlers", + "WindowEventHandlers", + "WindowModal", + "WindowOrWorkerGlobalScope" + ] + }, + "WindowClient": { + "inherits": "Client", + "implements": [] + }, + "WindowRoot": { + "inherits": "EventTarget", + "implements": [] + }, + "Worker": { + "inherits": "EventTarget", + "implements": [ + "AbstractWorker" + ] + }, + "WorkerGlobalScope": { + "inherits": "EventTarget", + "implements": [ + "GlobalCrypto", + "WindowOrWorkerGlobalScope" + ] + }, + "WorkerLocation": { + "inherits": null, + "implements": [ + "URLUtilsReadOnly" + ] + }, + "WorkerNavigator": { + "inherits": null, + "implements": [ + "NavigatorDataStore", + "NavigatorID", + "NavigatorLanguage", + "NavigatorOnLine" + ] + }, + "XMLDocument": { + "inherits": "Document", + "implements": [] + }, + "XMLHttpRequest": { + "inherits": "XMLHttpRequestEventTarget", + "implements": [] + }, + "XMLHttpRequestEventTarget": { + "inherits": "EventTarget", + "implements": [] + }, + "XMLHttpRequestUpload": { + "inherits": "XMLHttpRequestEventTarget", + "implements": [] + }, + "XMLSerializer": { + "inherits": null, + "implements": [] + }, + "XMLStylesheetProcessingInstruction": { + "inherits": "ProcessingInstruction", + "implements": [] + }, + "XPathEvaluator": { + "inherits": null, + "implements": [] + }, + "XR": { + "inherits": "EventTarget", + "implements": [] + }, + "XRBoundedReferenceSpace": { + "inherits": "XRReferenceSpace", + "implements": [] + }, + "XRFrame": { + "inherits": null, + "implements": [] + }, + "XRInputSource": { + "inherits": null, + "implements": [] + }, + "XRInputSourceArray": { + "inherits": null, + "implements": [] + }, + "XRInputSourceEvent": { + "inherits": "Event", + "implements": [] + }, + "XRInputSourcesChangeEvent": { + "inherits": "Event", + "implements": [] + }, + "XRPose": { + "inherits": null, + "implements": [] + }, + "XRReferenceSpace": { + "inherits": "XRSpace", + "implements": [] + }, + "XRReferenceSpaceEvent": { + "inherits": "Event", + "implements": [] + }, + "XRRenderState": { + "inherits": null, + "implements": [] + }, + "XRRigidTransform": { + "inherits": null, + "implements": [] + }, + "XRSession": { + "inherits": "EventTarget", + "implements": [] + }, + "XRSessionEvent": { + "inherits": "Event", + "implements": [] + }, + "XRSpace": { + "inherits": "EventTarget", + "implements": [] + }, + "XRView": { + "inherits": null, + "implements": [] + }, + "XRViewerPose": { + "inherits": "XRPose", + "implements": [] + }, + "XRViewport": { + "inherits": null, + "implements": [] + }, + "XRWebGLLayer": { + "inherits": null, + "implements": [] + }, + "XULCommandEvent": { + "inherits": "UIEvent", + "implements": [] + }, + "XULDocument": { + "inherits": "Document", + "implements": [] + }, + "XULElement": { + "inherits": "Element", + "implements": [ + "GlobalEventHandlers", + "MozFrameLoaderOwner", + "OnErrorEventHandlerForNodes", + "TouchEventHandlers" + ] + } +} diff --git a/node_modules/mdn-data/api/inheritance.schema.json b/node_modules/mdn-data/api/inheritance.schema.json new file mode 100644 index 0000000000000000000000000000000000000000..706abbc12c1f9f1c6a8328b8f69f7f3a22bea8e2 --- /dev/null +++ b/node_modules/mdn-data/api/inheritance.schema.json @@ -0,0 +1,31 @@ +{ + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": false, + "properties": { + "inherits": { + "oneOf": [ + { + "type": "null" + }, + { + "type": "string", + "minLength": 1 + } + ] + }, + "implements": { + "minItems": 0, + "uniqueItems": true, + "items": { + "type": "string" + } + } + }, + "required": [ + "inherits", + "implements" + ] + } +} diff --git a/node_modules/mdn-data/css/at-rules.json b/node_modules/mdn-data/css/at-rules.json new file mode 100644 index 0000000000000000000000000000000000000000..6e2bd5016c304f10b004ab87efa48b0de79b8706 --- /dev/null +++ b/node_modules/mdn-data/css/at-rules.json @@ -0,0 +1,581 @@ +{ + "@charset": { + "syntax": "@charset \"\";", + "groups": [ + "CSS Syntax" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@charset" + }, + "@counter-style": { + "syntax": "@counter-style {\n [ system: ; ] ||\n [ symbols: ; ] ||\n [ additive-symbols: ; ] ||\n [ negative: ; ] ||\n [ prefix: ; ] ||\n [ suffix: ; ] ||\n [ range: ; ] ||\n [ pad: ; ] ||\n [ speak-as: ; ] ||\n [ fallback: ; ]\n}", + "interfaces": [ + "CSSCounterStyleRule" + ], + "groups": [ + "CSS Counter Styles" + ], + "descriptors": { + "additive-symbols": { + "syntax": "[ && ]#", + "media": "all", + "initial": "n/a (required)", + "percentages": "no", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/additive-symbols" + }, + "fallback": { + "syntax": "", + "media": "all", + "initial": "decimal", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/fallback" + }, + "negative": { + "syntax": " ?", + "media": "all", + "initial": "\"-\" hyphen-minus", + "percentages": "no", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/negative" + }, + "pad": { + "syntax": " && ", + "media": "all", + "initial": "0 \"\"", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/pad" + }, + "prefix": { + "syntax": "", + "media": "all", + "initial": "\"\"", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/prefix" + }, + "range": { + "syntax": "[ [ | infinite ]{2} ]# | auto", + "media": "all", + "initial": "auto", + "percentages": "no", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/range" + }, + "speak-as": { + "syntax": "auto | bullets | numbers | words | spell-out | ", + "media": "all", + "initial": "auto", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/speak-as" + }, + "suffix": { + "syntax": "", + "media": "all", + "initial": "\". \"", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/suffix" + }, + "symbols": { + "syntax": "+", + "media": "all", + "initial": "n/a (required)", + "percentages": "no", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/symbols" + }, + "system": { + "syntax": "cyclic | numeric | alphabetic | symbolic | additive | [ fixed ? ] | [ extends ]", + "media": "all", + "initial": "symbolic", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/system" + } + }, + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style" + }, + "@container": { + "syntax": "@container # {\n \n}", + "interfaces": [ + "CSSContainerRule" + ], + "groups": [ + "CSS Conditional Rules" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@container" + }, + "@document": { + "syntax": "@document [ | url-prefix() | domain() | media-document() | regexp() ]# {\n \n}", + "interfaces": [ + "CSSDocumentRule" + ], + "groups": [ + "CSS Conditional Rules" + ], + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@document" + }, + "@font-face": { + "syntax": "@font-face {\n [ font-family: ; ] ||\n [ src: ; ] ||\n [ unicode-range: ; ] ||\n [ font-variant: ; ] ||\n [ font-feature-settings: ; ] ||\n [ font-variation-settings: ; ] ||\n [ font-stretch: ; ] ||\n [ font-weight: ; ] ||\n [ font-style: ; ] ||\n [ size-adjust: ; ] ||\n [ ascent-override: ; ] ||\n [ descent-override: ; ] ||\n [ line-gap-override: ; ]\n}", + "interfaces": [ + "CSSFontFaceRule" + ], + "groups": [ + "CSS Fonts" + ], + "descriptors": { + "ascent-override": { + "syntax": "normal | ", + "media": "all", + "initial": "normal", + "percentages": "asSpecified", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/ascent-override" + }, + "descent-override": { + "syntax": "normal | ", + "media": "all", + "initial": "normal", + "percentages": "asSpecified", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/descent-override" + }, + "font-display": { + "syntax": "auto | block | swap | fallback | optional", + "media": "visual", + "percentages": "no", + "initial": "auto", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-display" + }, + "font-family": { + "syntax": "", + "media": "all", + "initial": "n/a (required)", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-family" + }, + "font-feature-settings": { + "syntax": "normal | #", + "media": "all", + "initial": "normal", + "percentages": "no", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-feature-settings" + }, + "font-stretch": { + "syntax": "{1,2}", + "media": "all", + "initial": "normal", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "obsolete", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-stretch" + }, + "font-style": { + "syntax": "normal | italic | oblique {0,2}", + "media": "all", + "initial": "normal", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-style" + }, + "font-variation-settings": { + "syntax": "normal | [ ]#", + "media": "all", + "initial": "normal", + "percentages": "no", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-variation-settings" + }, + "font-weight": { + "syntax": "{1,2}", + "media": "all", + "initial": "normal", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-weight" + }, + "line-gap-override": { + "syntax": "normal | ", + "media": "all", + "initial": "normal", + "percentages": "asSpecified", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/line-gap-override" + }, + "size-adjust": { + "syntax": "", + "media": "all", + "initial": "100%", + "percentages": "asSpecified", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/size-adjust" + }, + "src": { + "syntax": "[ [ format( # ) ]? | local( ) ]#", + "media": "all", + "initial": "n/a (required)", + "percentages": "no", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/src" + }, + "unicode-range": { + "syntax": "#", + "media": "all", + "initial": "U+0-10FFFF", + "percentages": "no", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/unicode-range" + } + }, + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face" + }, + "@font-feature-values": { + "syntax": "@font-feature-values # {\n \n}", + "interfaces": [ + "CSSFontFeatureValuesRule" + ], + "groups": [ + "CSS Fonts" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-feature-values" + }, + "@font-palette-values": { + "syntax": "@font-palette-values {\n \n}", + "interfaces": [ + "CSSFontPaletteValuesRule" + ], + "groups": [ + "CSS Fonts" + ], + "descriptors": { + "base-palette": { + "syntax": "light | dark | ", + "media": "all", + "initial": "n/a (required)", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-palette-values/base-palette" + }, + "font-family": { + "syntax": "#", + "media": "all", + "initial": "n/a (required)", + "percentages": "no", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-palette-values/font-family" + }, + "override-colors": { + "syntax": "[ ]#", + "media": "all", + "initial": "n/a (required)", + "percentages": "no", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-palette-values/override-colors" + } + }, + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-palette-values" + }, + "@import": { + "syntax": "@import [ | ]\n [ layer | layer() ]?\n [ supports( [ | ] ) ]?\n ? ;", + "interfaces": [ + "CSSImportRule" + ], + "groups": [ + "CSS Cascading and Inheritance" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@import" + }, + "@keyframes": { + "syntax": "@keyframes {\n \n}", + "interfaces": [ + "CSSKeyframeRule", + "CSSKeyframesRule" + ], + "groups": [ + "CSS Animations" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@keyframes" + }, + "@layer": { + "syntax": "@layer [ # | ? {\n \n} ]", + "interfaces": [ + "CSSLayerBlockRule", + "CSSLayerStatementRule" + ], + "groups": [ + "CSS Cascading and Inheritance" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@layer" + }, + "@media": { + "syntax": "@media {\n \n}", + "interfaces": [ + "CSSMediaRule" + ], + "groups": [ + "CSS Conditional Rules", + "Media Queries" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@media" + }, + "@namespace": { + "syntax": "@namespace ? [ | ];", + "interfaces": [ + "CSSNamespaceRule" + ], + "groups": [ + "CSS Namespaces" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@namespace" + }, + "@page": { + "syntax": "@page {\n \n}", + "interfaces": [ + "CSSPageRule" + ], + "groups": [ + "CSS Paged Media" + ], + "descriptors": { + "bleed": { + "syntax": "auto | ", + "media": [ + "visual", + "paged" + ], + "initial": "auto", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard" + }, + "marks": { + "syntax": "none | [ crop || cross ]", + "media": [ + "visual", + "paged" + ], + "initial": "none", + "percentages": "no", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard" + }, + "page-orientation": { + "syntax": "upright | rotate-left | rotate-right", + "media": [ + "visual", + "paged" + ], + "initial": "upright", + "percentages": "no", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@page/page-orientation" + }, + "size": { + "syntax": "{1,2} | auto | [ || [ portrait | landscape ] ]", + "media": [ + "visual", + "paged" + ], + "initial": "auto", + "percentages": "no", + "computed": "asSpecifiedRelativeToAbsoluteLengths", + "order": "orderOfAppearance", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@page/size" + } + }, + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@page" + }, + "@position-try": { + "syntax": "@position-try {\n \n}", + "interfaces": [ + "CSSPositionTryRule" + ], + "groups": [ + "CSS Anchor Positioning" + ], + "status": "experimental", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@position-try" + }, + "@property": { + "syntax": "@property {\n \n}", + "interfaces": [ + "CSSPropertyRule" + ], + "groups": [ + "CSS Houdini" + ], + "descriptors": { + "inherits": { + "syntax": "true | false", + "media": "all", + "percentages": "no", + "initial": "auto", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@property/inherits" + }, + "initial-value": { + "syntax": "?", + "media": "all", + "initial": "n/a (required)", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@property/initial-value" + }, + "syntax": { + "syntax": "", + "media": "all", + "percentages": "no", + "initial": "n/a (required)", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@property/syntax" + } + }, + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@property" + }, + "@scope": { + "syntax": "@scope [()]? [to ()]? {\n \n}", + "interfaces": [ + "CSSScopeRule" + ], + "groups": [ + "CSS Conditional Rules" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@scope" + }, + "@starting-style": { + "syntax": "@starting-style {\n | \n}", + "interfaces": [ + "CSSStartingStyleRule" + ], + "groups": [ + "CSS Transitions" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@starting-style" + }, + "@supports": { + "syntax": "@supports {\n \n}", + "interfaces": [ + "CSSSupportsRule" + ], + "groups": [ + "CSS Conditional Rules" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@supports" + }, + "@view-transition": { + "syntax": "@view-transition {\n \n}", + "interfaces": [ + "CSSViewTransitionRule" + ], + "groups": [ + "CSS View Transitions" + ], + "descriptors": { + "navigation": { + "syntax": "auto | none", + "media": "all", + "initial": "none", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard" + }, + "types": { + "syntax": "none | +", + "media": "all", + "initial": "none", + "percentages": "no", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard" + } + }, + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@view-transition" + } +} diff --git a/node_modules/mdn-data/css/at-rules.schema.json b/node_modules/mdn-data/css/at-rules.schema.json new file mode 100644 index 0000000000000000000000000000000000000000..f33e9d03e87f729e900e3de5f16271bcdbf00bd0 --- /dev/null +++ b/node_modules/mdn-data/css/at-rules.schema.json @@ -0,0 +1,137 @@ +{ + "definitions": { + "stringOrPropertyList": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "minItems": 1, + "uniqueItems": true, + "items": { + "type": "string", + "property-reference": { + "comment": "property-reference is an extension to the JSON schema validator. Here it jumps 3 levels up in the hierarchy and tests if a value is an existing key in descriptors. See test/validate-schema.js for implementation details.", + "$data": "3" + } + } + } + ] + } + }, + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": false, + "properties": { + "syntax": { + "type": "string" + }, + "interfaces": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "minitems": 1, + "uniqueItems": true, + "items": { + "$ref": "definitions.json#/groupList" + } + }, + "descriptors": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": false, + "properties": { + "syntax": { + "type": "string" + }, + "media": { + "oneOf": [ + { + "type": "string", + "enum": [ + "all", + "continuous", + "paged", + "visual" + ] + }, + { + "type": "array", + "minItems": 2, + "uniqueItems": true, + "items": { + "type": "string", + "enum": [ + "continuous", + "paged", + "visual" + ] + } + } + ] + }, + "initial": { + "$ref": "#/definitions/stringOrPropertyList" + }, + "percentages": { + "$ref": "#/definitions/stringOrPropertyList" + }, + "computed": { + "$ref": "#/definitions/stringOrPropertyList" + }, + "order": { + "enum": [ + "orderOfAppearance", + "uniqueOrder" + ] + }, + "status": { + "enum": [ + "standard", + "nonstandard", + "experimental", + "obsolete" + ] + }, + "mdn_url": { + "type": "string", + "pattern": "^https://developer.mozilla.org/docs/Web/CSS/" + } + }, + "required": [ + "syntax", + "initial", + "percentages", + "computed", + "order", + "status" + ] + } + }, + "status": { + "enum": [ + "standard", + "nonstandard", + "experimental", + "obsolete" + ] + }, + "mdn_url": { + "type": "string", + "pattern": "^https://developer.mozilla.org/docs/Web/CSS/" + } + }, + "required": [ + "syntax", + "groups", + "status" + ] + } +} diff --git a/node_modules/mdn-data/css/definitions.json b/node_modules/mdn-data/css/definitions.json new file mode 100644 index 0000000000000000000000000000000000000000..4ac52500f444a5e6f32e6017869fc2134eb2a59a --- /dev/null +++ b/node_modules/mdn-data/css/definitions.json @@ -0,0 +1,82 @@ +{ + "groupList": { + "enum": [ + "Compositing and Blending", + "CSS Anchor Positioning", + "CSS Animations", + "CSS Backgrounds and Borders", + "CSS Basic User Interface", + "CSS Box Alignment", + "CSS Box Model", + "CSS Box Sizing", + "CSS Cascading and Inheritance", + "CSS Color", + "CSS Conditional Rules", + "CSS Containment", + "CSS Counter Styles", + "CSS Custom Highlight API", + "CSS Custom Properties for Cascading Variables", + "CSS Display", + "CSS Easing Functions", + "CSS Environment Variables", + "CSS Flexible Box Layout", + "CSS Fonts", + "CSS Form Control Styling", + "CSS Fragmentation", + "CSS Generated Content", + "CSS Grid Layout", + "CSS Houdini", + "CSS Images", + "CSS Inline", + "CSS Lists and Counters", + "CSS Logical Properties and Values", + "CSS Masking", + "CSS Mobile Text Size Adjustment", + "CSS Motion Path", + "CSS Multi-column Layout", + "CSS Namespaces", + "CSS Nesting", + "CSS Overflow", + "CSS Overscroll Behavior", + "CSS Paged Media", + "CSS Positioned Layout", + "CSS Pseudo-Elements", + "CSS Resolutions", + "CSS Rhythmic Sizing", + "CSS Ruby", + "CSS Scoping", + "CSS Scroll Anchoring", + "CSS Scroll Snap", + "CSS Scrollbars Styling", + "CSS Shadow Parts", + "CSS Shapes", + "CSS Speech", + "CSS Syntax", + "CSS Table", + "CSS Text", + "CSS Text Decoration", + "CSS Transforms", + "CSS Transitions", + "CSS Types", + "CSS Values and Units", + "CSS View Transitions", + "CSS Viewport", + "CSS Will Change", + "CSS Writing Modes", + "Filter Effects", + "Fullscreen API", + "MathML", + "Media Queries", + "Microsoft Extensions", + "Motion Path", + "Mozilla Extensions", + "Pointer Events", + "Selectors", + "Scalable Vector Graphics", + "Scroll-driven Animations", + "WebKit Extensions", + "WebVTT", + "WebXR DOM Overlays" + ] + } +} diff --git a/node_modules/mdn-data/css/functions.json b/node_modules/mdn-data/css/functions.json new file mode 100644 index 0000000000000000000000000000000000000000..a6db316970228d550e9c17a1c63a4c24cf25005b --- /dev/null +++ b/node_modules/mdn-data/css/functions.json @@ -0,0 +1,839 @@ +{ + "abs()": { + "syntax": "abs( )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/abs" + }, + "acos()": { + "syntax": "acos( )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/acos" + }, + "anchor()": { + "syntax": "anchor( ? && , ? )", + "groups": [ + "CSS Anchor Positioning" + ], + "status": "experimental", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/anchor" + }, + "anchor-size()": { + "syntax": "anchor-size( [ || ]? , ? )", + "groups": [ + "CSS Anchor Positioning" + ], + "status": "experimental", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/anchor-size" + }, + "asin()": { + "syntax": "asin( )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/asin" + }, + "atan()": { + "syntax": "atan( )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/atan" + }, + "atan2()": { + "syntax": "atan2( , )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/atan2" + }, + "attr()": { + "syntax": "attr( ? , ? )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/attr" + }, + "blur()": { + "syntax": "blur( ? )", + "groups": [ + "Filter Effects" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/blur" + }, + "brightness()": { + "syntax": "brightness( [ | ]? )", + "groups": [ + "Filter Effects" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/brightness" + }, + "calc()": { + "syntax": "calc( )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/calc" + }, + "calc-size()": { + "syntax": "calc-size( , )", + "groups": [ + "CSS Values and Units" + ], + "status": "experimental", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/calc-size" + }, + "circle()": { + "syntax": "circle( ? [ at ]? )", + "groups": [ + "CSS Shapes" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/circle" + }, + "clamp()": { + "syntax": "clamp( #{3} )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/clamp" + }, + "color()": { + "syntax": "color( [ from ]? [ / [ | none ] ]? )", + "groups": [ + "CSS Color" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/color" + }, + "color-mix()": { + "syntax": "color-mix( , [ && ? ]#{2})", + "groups": [ + "CSS Color" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/color-mix" + }, + "conic-gradient()": { + "syntax": "conic-gradient( [ ] )", + "groups": [ + "CSS Images" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/conic-gradient" + }, + "contrast()": { + "syntax": "contrast( [ | ]? )", + "groups": [ + "Filter Effects" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/contrast" + }, + "cos()": { + "syntax": "cos( )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/cos" + }, + "counter()": { + "syntax": "counter( , ? )", + "groups": [ + "CSS Lists and Counters" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/counter" + }, + "counters()": { + "syntax": "counters( , , ? )", + "groups": [ + "CSS Lists and Counters" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/counters" + }, + "cross-fade()": { + "syntax": "cross-fade( , ? )", + "groups": [ + "CSS Images" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/cross-fade" + }, + "cubic-bezier()": { + "syntax": "cubic-bezier( [ , ]#{2} )", + "groups": [ + "CSS Easing Functions" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/easing-function/cubic-bezier" + }, + "drop-shadow()": { + "syntax": "drop-shadow( [ ? && {2,3} ] )", + "groups": [ + "Filter Effects" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/drop-shadow" + }, + "element()": { + "syntax": "element( )", + "groups": [ + "CSS Images" + ], + "status": "experimental", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/element" + }, + "ellipse()": { + "syntax": "ellipse( ? [ at ]? )", + "groups": [ + "CSS Shapes" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/ellipse" + }, + "env()": { + "syntax": "env( , ? )", + "groups": [ + "CSS Environment Variables" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/env" + }, + "exp()": { + "syntax": "exp( )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/exp" + }, + "fit-content()": { + "syntax": "fit-content( )", + "groups": [ + "CSS Box Sizing", + "CSS Grid Layout" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/fit-content_function" + }, + "grayscale()": { + "syntax": "grayscale( [ | ]? )", + "groups": [ + "Filter Effects" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/grayscale" + }, + "hsl()": { + "syntax": "hsl( , , , ? ) | hsl( [ | none ] [ | | none ] [ | | none ] [ / [ | none ] ]? )", + "groups": [ + "CSS Color" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/hsl" + }, + "hsla()": { + "syntax": "hsla( , , , ? ) | hsla( [ | none ] [ | | none ] [ | | none ] [ / [ | none ] ]? )", + "groups": [ + "CSS Color" + ], + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/hsl" + }, + "hue-rotate()": { + "syntax": "hue-rotate( [ | ]? )", + "groups": [ + "Filter Effects" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/hue-rotate" + }, + "hwb()": { + "syntax": "hwb( [ | none ] [ | | none ] [ | | none ] [ / [ | none ] ]? )", + "groups": [ + "CSS Color" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/hwb" + }, + "hypot()": { + "syntax": "hypot( # )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/hypot" + }, + "image()": { + "syntax": "image( ? [ ? , ? ]! )", + "groups": [ + "CSS Images" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/image/image" + }, + "image-set()": { + "syntax": "image-set( # )", + "groups": [ + "CSS Images" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/image/image-set" + }, + "inset()": { + "syntax": "inset( {1,4} [ round <'border-radius'> ]? )", + "groups": [ + "CSS Shapes" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/inset" + }, + "invert()": { + "syntax": "invert( [ | ]? )", + "groups": [ + "Filter Effects" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/invert" + }, + "lab()": { + "syntax": "lab( [ | | none] [ | | none] [ | | none] [ / [ | none] ]? )", + "groups": [ + "CSS Color" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/lab" + }, + "layer()": { + "syntax": "layer( )", + "groups": [ + "CSS Cascading and Inheritance" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@import/layer_function" + }, + "lch()": { + "syntax": "lch( [ | | none] [ | | none] [ | none] [ / [ | none] ]? )", + "groups": [ + "CSS Color" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/lch" + }, + "leader()": { + "syntax": "leader( )", + "groups": [ + "CSS Generated Content" + ], + "status": "experimental" + }, + "light-dark()": { + "syntax": "light-dark( , )", + "groups": [ + "CSS Color" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/light-dark" + }, + "linear()": { + "syntax": "linear( [ && {0,2} ]# )", + "groups": [ + "CSS Easing Functions" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/easing-function/linear" + }, + "linear-gradient()": { + "syntax": "linear-gradient( [ ] )", + "groups": [ + "CSS Images" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/linear-gradient" + }, + "log()": { + "syntax": "log( , ? )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/log" + }, + "matrix()": { + "syntax": "matrix( #{6} )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/matrix" + }, + "matrix3d()": { + "syntax": "matrix3d( #{16} )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/matrix3d" + }, + "max()": { + "syntax": "max( # )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/max" + }, + "min()": { + "syntax": "min( # )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/min" + }, + "minmax()": { + "syntax": "minmax( [ | min-content | max-content | auto ] , [ | | min-content | max-content | auto ] )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/minmax" + }, + "mod()": { + "syntax": "mod( , )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mod" + }, + "oklab()": { + "syntax": "oklab( [ | | none] [ | | none] [ | | none] [ / [ | none] ]? )", + "groups": [ + "CSS Color" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/oklab" + }, + "oklch()": { + "syntax": "oklch( [ | | none] [ | | none] [ | none] [ / [ | none] ]? )", + "groups": [ + "CSS Color" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/oklch" + }, + "opacity()": { + "syntax": "opacity( [ | ]? )", + "groups": [ + "Filter Effects" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/opacity" + }, + "paint()": { + "syntax": "paint( , ? )", + "groups": [ + "CSS Houdini" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/image/paint" + }, + "palette-mix()": { + "syntax": "palette-mix( , [ [normal | light | dark | | ] && ? ]#{2})", + "groups": [ + "CSS Fonts" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-palette/palette-mix" + }, + "path()": { + "syntax": "path( <'fill-rule'>? , )", + "groups": [ + "CSS Shapes" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/path" + }, + "perspective()": { + "syntax": "perspective( [ | none ] )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/perspective" + }, + "polygon()": { + "syntax": "polygon( <'fill-rule'>? , [ ]# )", + "groups": [ + "CSS Shapes" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/polygon" + }, + "pow()": { + "syntax": "pow( , )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/pow" + }, + "radial-gradient()": { + "syntax": "radial-gradient( [ ] )", + "groups": [ + "CSS Images" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/radial-gradient" + }, + "ray()": { + "syntax": "ray( && ? && contain? && [at ]? )", + "groups": [ + "Motion Path" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/ray" + }, + "rect()": { + "syntax": "rect( [ | auto ]{4} [ round <'border-radius'> ]? )", + "groups": [ + "CSS Shapes" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/rect" + }, + "rem()": { + "syntax": "rem( , )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/rem" + }, + "repeating-conic-gradient()": { + "syntax": "repeating-conic-gradient( [ ] )", + "groups": [ + "CSS Images" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/repeating-conic-gradient" + }, + "repeating-linear-gradient()": { + "syntax": "repeating-linear-gradient( [ ] )", + "groups": [ + "CSS Images" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/repeating-linear-gradient" + }, + "repeating-radial-gradient()": { + "syntax": "repeating-radial-gradient( [ ] )", + "groups": [ + "CSS Images" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/repeating-radial-gradient" + }, + "rgb()": { + "syntax": "rgb( #{3} , ? ) | rgb( #{3} , ? ) | rgb( [ | | none ]{3} [ / [ | none ] ]? )", + "groups": [ + "CSS Color" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/rgb" + }, + "rgba()": { + "syntax": "rgba( #{3} , ? ) | rgba( #{3} , ? ) | rgba( [ | | none ]{3} [ / [ | none ] ]? )", + "groups": [ + "CSS Color" + ], + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/rgb" + }, + "rotate()": { + "syntax": "rotate( [ | ] )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/rotate" + }, + "rotate3d()": { + "syntax": "rotate3d( , , , [ | ] )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/rotate3d" + }, + "rotateX()": { + "syntax": "rotateX( [ | ] )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/rotateX" + }, + "rotateY()": { + "syntax": "rotateY( [ | ] )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/rotateY" + }, + "rotateZ()": { + "syntax": "rotateZ( [ | ] )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/rotateZ" + }, + "round()": { + "syntax": "round( ?, , )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/round" + }, + "saturate()": { + "syntax": "saturate( [ | ]? )", + "groups": [ + "Filter Effects" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/saturate" + }, + "scale()": { + "syntax": "scale( [ | ]#{1,2} )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/scale" + }, + "scale3d()": { + "syntax": "scale3d( [ | ]#{3} )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/scale3d" + }, + "scaleX()": { + "syntax": "scaleX( [ | ] )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/scaleX" + }, + "scaleY()": { + "syntax": "scaleY( [ | ] )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/scaleY" + }, + "scaleZ()": { + "syntax": "scaleZ( [ | ] )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/scaleZ" + }, + "scroll()": { + "syntax": "scroll( [ || ]? )", + "groups": [ + "Scroll-driven Animations" + ], + "status": "experimental", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/animation-timeline/scroll" + }, + "sepia()": { + "syntax": "sepia( [ | ]? )", + "groups": [ + "Filter Effects" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/sepia" + }, + "sign()": { + "syntax": "sign( )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/sign" + }, + "sin()": { + "syntax": "sin( )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/sin" + }, + "skew()": { + "syntax": "skew( [ | ] , [ | ]? )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/skew" + }, + "skewX()": { + "syntax": "skewX( [ | ] )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/skewX" + }, + "skewY()": { + "syntax": "skewY( [ | ] )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/skewY" + }, + "sqrt()": { + "syntax": "sqrt( )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/sqrt" + }, + "steps()": { + "syntax": "steps( , ? )", + "groups": [ + "CSS Easing Functions" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/easing-function/steps" + }, + "symbols()": { + "syntax": "symbols( ? [ | ]+ )", + "groups": [ + "CSS Counter Styles" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/symbols" + }, + "tan()": { + "syntax": "tan( )", + "groups": [ + "CSS Values and Units" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/tan" + }, + "target-counter()": { + "syntax": "target-counter( [ | ] , , ? )", + "groups": [ + "CSS Generated Content" + ], + "status": "experimental" + }, + "target-counters()": { + "syntax": "target-counters( [ | ] , , , ? )", + "groups": [ + "CSS Generated Content" + ], + "status": "experimental" + }, + "target-text()": { + "syntax": "target-text( [ | ] , [ content | before | after | first-letter ]? )", + "groups": [ + "CSS Generated Content" + ], + "status": "experimental" + }, + "translate()": { + "syntax": "translate( , ? )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/translate" + }, + "translate3d()": { + "syntax": "translate3d( , , )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/translate3d" + }, + "translateX()": { + "syntax": "translateX( )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/translateX" + }, + "translateY()": { + "syntax": "translateY( )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/translateY" + }, + "translateZ()": { + "syntax": "translateZ( )", + "groups": [ + "CSS Transforms" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/translateZ" + }, + "var()": { + "syntax": "var( , ? )", + "groups": [ + "CSS Custom Properties for Cascading Variables" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/var" + }, + "view()": { + "syntax": "view([ || <'view-timeline-inset'>]?)", + "groups": [ + "Scroll-driven Animations" + ], + "status": "experimental", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/animation-timeline/view" + }, + "xywh()": { + "syntax": "xywh( {2} {2} [ round <'border-radius'> ]? )", + "groups": [ + "CSS Shapes" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/xywh" + } +} diff --git a/node_modules/mdn-data/css/functions.schema.json b/node_modules/mdn-data/css/functions.schema.json new file mode 100644 index 0000000000000000000000000000000000000000..26fd45c8c9b543e44f3db0a7682bedfe32287704 --- /dev/null +++ b/node_modules/mdn-data/css/functions.schema.json @@ -0,0 +1,45 @@ +{ + "definitions": { + "status": { + "enum": [ + "standard", + "nonstandard", + "experimental", + "obsolete" + ] + }, + "mdn_url": { + "type": "string", + "pattern": "^https://developer.mozilla.org/docs/" + } + }, + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": false, + "required": [ + "syntax", + "groups", + "status" + ], + "properties": { + "syntax": { + "type": "string" + }, + "groups": { + "type": "array", + "minitems": 1, + "uniqueItems": true, + "items": { + "$ref": "definitions.json#/groupList" + } + }, + "status": { + "$ref": "#/definitions/status" + }, + "mdn_url": { + "$ref": "#/definitions/mdn_url" + } + } + } +} diff --git a/node_modules/mdn-data/css/index.js b/node_modules/mdn-data/css/index.js new file mode 100644 index 0000000000000000000000000000000000000000..fcc2ebd2d723e6b0d965f4abed6630a0f36ab56a --- /dev/null +++ b/node_modules/mdn-data/css/index.js @@ -0,0 +1,9 @@ +module.exports = { + atRules: require('./at-rules'), + functions: require('./functions'), + selectors: require('./selectors'), + types: require('./types'), + properties: require('./properties'), + syntaxes: require('./syntaxes'), + units: require('./units'), +} diff --git a/node_modules/mdn-data/css/properties.json b/node_modules/mdn-data/css/properties.json new file mode 100644 index 0000000000000000000000000000000000000000..8c4f7ae90200bf5955261f4f6cad926c0e88b40b --- /dev/null +++ b/node_modules/mdn-data/css/properties.json @@ -0,0 +1,11881 @@ +{ + "--*": { + "syntax": "", + "media": "all", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "CSS Custom Properties for Cascading Variables" + ], + "initial": "seeProse", + "appliesto": "allElements", + "computed": "asSpecifiedWithVarsSubstituted", + "order": "perGrammar", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/--*" + }, + "-ms-accelerator": { + "syntax": "false | true", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "false", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-block-progression": { + "syntax": "tb | rl | bt | lr", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "tb", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-content-zoom-chaining": { + "syntax": "none | chained", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "none", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-content-zoom-limit": { + "syntax": "<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": [ + "-ms-content-zoom-limit-max", + "-ms-content-zoom-limit-min" + ], + "groups": [ + "Microsoft Extensions" + ], + "initial": [ + "-ms-content-zoom-limit-max", + "-ms-content-zoom-limit-min" + ], + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": [ + "-ms-content-zoom-limit-max", + "-ms-content-zoom-limit-min" + ], + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-content-zoom-limit-max": { + "syntax": "", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "maxZoomFactor", + "groups": [ + "Microsoft Extensions" + ], + "initial": "400%", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-content-zoom-limit-min": { + "syntax": "", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "minZoomFactor", + "groups": [ + "Microsoft Extensions" + ], + "initial": "100%", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-content-zoom-snap": { + "syntax": "<'-ms-content-zoom-snap-type'> || <'-ms-content-zoom-snap-points'>", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": [ + "-ms-content-zoom-snap-type", + "-ms-content-zoom-snap-points" + ], + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": [ + "-ms-content-zoom-snap-type", + "-ms-content-zoom-snap-points" + ], + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-content-zoom-snap-points": { + "syntax": "snapInterval( , ) | snapList( # )", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "snapInterval(0%, 100%)", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-content-zoom-snap-type": { + "syntax": "none | proximity | mandatory", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "none", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-content-zooming": { + "syntax": "none | zoom", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "zoomForTheTopLevelNoneForTheRest", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-filter": { + "syntax": "", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "\"\"", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-flow-from": { + "syntax": "[ none | ]#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "none", + "appliesto": "nonReplacedElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-flow-into": { + "syntax": "[ none | ]#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "none", + "appliesto": "iframeElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-grid-columns": { + "syntax": "none | | ", + "media": "visual", + "inherited": false, + "animationType": "simpleListOfLpcDifferenceLpc", + "percentages": "referToDimensionOfContentArea", + "groups": [ + "CSS Grid Layout" + ], + "initial": "none", + "appliesto": "gridContainers", + "computed": "asSpecifiedRelativeToAbsoluteLengths", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-grid-rows": { + "syntax": "none | | ", + "media": "visual", + "inherited": false, + "animationType": "simpleListOfLpcDifferenceLpc", + "percentages": "referToDimensionOfContentArea", + "groups": [ + "CSS Grid Layout" + ], + "initial": "none", + "appliesto": "gridContainers", + "computed": "asSpecifiedRelativeToAbsoluteLengths", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-high-contrast-adjust": { + "syntax": "auto | none", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "auto", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-hyphenate-limit-chars": { + "syntax": "auto | {1,3}", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "auto", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-hyphenate-limit-lines": { + "syntax": "no-limit | ", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "no-limit", + "appliesto": "blockContainerElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-hyphenate-limit-zone": { + "syntax": " | ", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "referToLineBoxWidth", + "groups": [ + "Microsoft Extensions" + ], + "initial": "0", + "appliesto": "blockContainerElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-ime-align": { + "syntax": "auto | after", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "auto", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-overflow-style": { + "syntax": "auto | none | scrollbar | -ms-autohiding-scrollbar", + "media": "interactive", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "auto", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scroll-chaining": { + "syntax": "chained | none", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "chained", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scroll-limit": { + "syntax": "<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": [ + "-ms-scroll-limit-x-min", + "-ms-scroll-limit-y-min", + "-ms-scroll-limit-x-max", + "-ms-scroll-limit-y-max" + ], + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": [ + "-ms-scroll-limit-x-min", + "-ms-scroll-limit-y-min", + "-ms-scroll-limit-x-max", + "-ms-scroll-limit-y-max" + ], + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scroll-limit-x-max": { + "syntax": "auto | ", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "auto", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scroll-limit-x-min": { + "syntax": "", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "0", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scroll-limit-y-max": { + "syntax": "auto | ", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "auto", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scroll-limit-y-min": { + "syntax": "", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "0", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scroll-rails": { + "syntax": "none | railed", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "railed", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scroll-snap-points-x": { + "syntax": "snapInterval( , ) | snapList( # )", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "snapInterval(0px, 100%)", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scroll-snap-points-y": { + "syntax": "snapInterval( , ) | snapList( # )", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "snapInterval(0px, 100%)", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scroll-snap-type": { + "syntax": "none | proximity | mandatory", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "none", + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scroll-snap-x": { + "syntax": "<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": [ + "-ms-scroll-snap-type", + "-ms-scroll-snap-points-x" + ], + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": [ + "-ms-scroll-snap-type", + "-ms-scroll-snap-points-x" + ], + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scroll-snap-y": { + "syntax": "<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": [ + "-ms-scroll-snap-type", + "-ms-scroll-snap-points-y" + ], + "appliesto": "nonReplacedBlockAndInlineBlockElements", + "computed": [ + "-ms-scroll-snap-type", + "-ms-scroll-snap-points-y" + ], + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scroll-translation": { + "syntax": "none | vertical-to-horizontal", + "media": "interactive", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "none", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scrollbar-3dlight-color": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "dependsOnUserAgent", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scrollbar-arrow-color": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "ButtonText", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scrollbar-base-color": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "dependsOnUserAgent", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scrollbar-darkshadow-color": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "ThreeDDarkShadow", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scrollbar-face-color": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "ThreeDFace", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scrollbar-highlight-color": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "ThreeDHighlight", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scrollbar-shadow-color": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "ThreeDDarkShadow", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-scrollbar-track-color": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "Scrollbar", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-text-autospace": { + "syntax": "none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "none", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-touch-select": { + "syntax": "grippers | none", + "media": "interactive", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "grippers", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-user-select": { + "syntax": "none | element | text", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "text", + "appliesto": "nonReplacedElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-wrap-flow": { + "syntax": "auto | both | start | end | maximum | clear", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "auto", + "appliesto": "blockLevelElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-wrap-margin": { + "syntax": "", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "0", + "appliesto": "exclusionElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-ms-wrap-through": { + "syntax": "wrap | none", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Microsoft Extensions" + ], + "initial": "wrap", + "appliesto": "blockLevelElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-appearance": { + "syntax": "none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions", + "WebKit Extensions" + ], + "initial": "noneButOverriddenInUserAgentCSS", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/appearance" + }, + "-moz-binding": { + "syntax": " | none", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "none", + "appliesto": "allElementsExceptGeneratedContentOrPseudoElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-border-bottom-colors": { + "syntax": "+ | none", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "none", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-border-left-colors": { + "syntax": "+ | none", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "none", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-border-right-colors": { + "syntax": "+ | none", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "none", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-border-top-colors": { + "syntax": "+ | none", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "none", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-context-properties": { + "syntax": "none | [ fill | fill-opacity | stroke | stroke-opacity ]#", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "none", + "appliesto": "allElementsThatCanReferenceImages", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-float-edge": { + "syntax": "border-box | content-box | margin-box | padding-box", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "content-box", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge" + }, + "-moz-force-broken-image-icon": { + "syntax": "0 | 1", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "0", + "appliesto": "images", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon" + }, + "-moz-orient": { + "syntax": "inline | block | horizontal | vertical", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "inline", + "appliesto": "anyElementEffectOnProgressAndMeter", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-moz-orient" + }, + "-moz-outline-radius": { + "syntax": "{1,4} [ / {1,4} ]?", + "media": "visual", + "inherited": false, + "animationType": [ + "-moz-outline-radius-topleft", + "-moz-outline-radius-topright", + "-moz-outline-radius-bottomright", + "-moz-outline-radius-bottomleft" + ], + "percentages": [ + "-moz-outline-radius-topleft", + "-moz-outline-radius-topright", + "-moz-outline-radius-bottomright", + "-moz-outline-radius-bottomleft" + ], + "groups": [ + "Mozilla Extensions" + ], + "initial": [ + "-moz-outline-radius-topleft", + "-moz-outline-radius-topright", + "-moz-outline-radius-bottomright", + "-moz-outline-radius-bottomleft" + ], + "appliesto": "allElements", + "computed": [ + "-moz-outline-radius-topleft", + "-moz-outline-radius-topright", + "-moz-outline-radius-bottomright", + "-moz-outline-radius-bottomleft" + ], + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-outline-radius-bottomleft": { + "syntax": "", + "media": "visual", + "inherited": false, + "animationType": "lpc", + "percentages": "referToDimensionOfBorderBox", + "groups": [ + "Mozilla Extensions" + ], + "initial": "0", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-outline-radius-bottomright": { + "syntax": "", + "media": "visual", + "inherited": false, + "animationType": "lpc", + "percentages": "referToDimensionOfBorderBox", + "groups": [ + "Mozilla Extensions" + ], + "initial": "0", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-outline-radius-topleft": { + "syntax": "", + "media": "visual", + "inherited": false, + "animationType": "lpc", + "percentages": "referToDimensionOfBorderBox", + "groups": [ + "Mozilla Extensions" + ], + "initial": "0", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-outline-radius-topright": { + "syntax": "", + "media": "visual", + "inherited": false, + "animationType": "lpc", + "percentages": "referToDimensionOfBorderBox", + "groups": [ + "Mozilla Extensions" + ], + "initial": "0", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-stack-sizing": { + "syntax": "ignore | stretch-to-fit", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "stretch-to-fit", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-text-blink": { + "syntax": "none | blink", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "none", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-user-focus": { + "syntax": "ignore | normal | select-after | select-before | select-menu | select-same | select-all | none", + "media": "interactive", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "none", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus" + }, + "-moz-user-input": { + "syntax": "auto | none | enabled | disabled", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "auto", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-moz-user-input" + }, + "-moz-user-modify": { + "syntax": "read-only | read-write | write-only", + "media": "interactive", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "read-only", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/user-modify" + }, + "-moz-window-dragging": { + "syntax": "drag | no-drag", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "drag", + "appliesto": "allElementsCreatingNativeWindows", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-moz-window-shadow": { + "syntax": "default | menu | tooltip | sheet | none", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Mozilla Extensions" + ], + "initial": "default", + "appliesto": "allElementsCreatingNativeWindows", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-webkit-appearance": { + "syntax": "none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "noneButOverriddenInUserAgentCSS", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/appearance" + }, + "-webkit-border-before": { + "syntax": "<'border-width'> || <'border-style'> || ", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": [ + "-webkit-border-before-width" + ], + "groups": [ + "WebKit Extensions" + ], + "initial": [ + "border-width", + "border-style", + "color" + ], + "appliesto": "allElements", + "computed": [ + "border-width", + "border-style", + "color" + ], + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before" + }, + "-webkit-border-before-color": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "currentcolor", + "appliesto": "allElements", + "computed": "computedColor", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-webkit-border-before-style": { + "syntax": "<'border-style'>", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "none", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-webkit-border-before-width": { + "syntax": "<'border-width'>", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "logicalWidthOfContainingBlock", + "groups": [ + "WebKit Extensions" + ], + "initial": "medium", + "appliesto": "allElements", + "computed": "absoluteLengthZeroIfBorderStyleNoneOrHidden", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-webkit-box-reflect": { + "syntax": "[ above | below | right | left ]? ? ?", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "none", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect" + }, + "-webkit-line-clamp": { + "syntax": "none | ", + "media": "visual", + "inherited": false, + "animationType": "byComputedValueType", + "percentages": "no", + "groups": [ + "WebKit Extensions", + "CSS Overflow" + ], + "initial": "none", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp" + }, + "-webkit-mask": { + "syntax": "[ || [ / ]? || || [ | border | padding | content | text ] || [ | border | padding | content ] ]#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": [ + "-webkit-mask-image", + "-webkit-mask-repeat", + "-webkit-mask-attachment", + "-webkit-mask-position", + "-webkit-mask-origin", + "-webkit-mask-clip" + ], + "appliesto": "allElements", + "computed": [ + "-webkit-mask-image", + "-webkit-mask-repeat", + "-webkit-mask-attachment", + "-webkit-mask-position", + "-webkit-mask-origin", + "-webkit-mask-clip" + ], + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask" + }, + "-webkit-mask-attachment": { + "syntax": "#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "scroll", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "nonstandard" + }, + "-webkit-mask-clip": { + "syntax": "[ | no-clip | border | padding | content | text ]#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "border", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-clip" + }, + "-webkit-mask-composite": { + "syntax": "#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "source-over", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite" + }, + "-webkit-mask-image": { + "syntax": "#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "none", + "appliesto": "allElements", + "computed": "absoluteURIOrNone", + "order": "orderOfAppearance", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-image" + }, + "-webkit-mask-origin": { + "syntax": "[ | border | padding | content ]#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "padding", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-origin" + }, + "-webkit-mask-position": { + "syntax": "#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "referToSizeOfElement", + "groups": [ + "WebKit Extensions" + ], + "initial": "0% 0%", + "appliesto": "allElements", + "computed": "absoluteLengthOrPercentage", + "order": "orderOfAppearance", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-position" + }, + "-webkit-mask-position-x": { + "syntax": "[ | left | center | right ]#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "referToSizeOfElement", + "groups": [ + "WebKit Extensions" + ], + "initial": "0%", + "appliesto": "allElements", + "computed": "absoluteLengthOrPercentage", + "order": "orderOfAppearance", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x" + }, + "-webkit-mask-position-y": { + "syntax": "[ | top | center | bottom ]#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "referToSizeOfElement", + "groups": [ + "WebKit Extensions" + ], + "initial": "0%", + "appliesto": "allElements", + "computed": "absoluteLengthOrPercentage", + "order": "orderOfAppearance", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y" + }, + "-webkit-mask-repeat": { + "syntax": "#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "repeat", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-repeat" + }, + "-webkit-mask-repeat-x": { + "syntax": "repeat | no-repeat | space | round", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "repeat", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x" + }, + "-webkit-mask-repeat-y": { + "syntax": "repeat | no-repeat | space | round", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "repeat", + "appliesto": "allElements", + "computed": "absoluteLengthOrPercentage", + "order": "orderOfAppearance", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y" + }, + "-webkit-mask-size": { + "syntax": "#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "relativeToBackgroundPositioningArea", + "groups": [ + "WebKit Extensions" + ], + "initial": "auto auto", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-size" + }, + "-webkit-overflow-scrolling": { + "syntax": "auto | touch", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "auto", + "appliesto": "scrollingBoxes", + "computed": "asSpecified", + "order": "orderOfAppearance", + "status": "nonstandard" + }, + "-webkit-tap-highlight-color": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "black", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color" + }, + "-webkit-text-fill-color": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "color", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "currentcolor", + "appliesto": "allElements", + "computed": "computedColor", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color" + }, + "-webkit-text-stroke": { + "syntax": " || ", + "media": "visual", + "inherited": true, + "animationType": [ + "-webkit-text-stroke-width", + "-webkit-text-stroke-color" + ], + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": [ + "-webkit-text-stroke-width", + "-webkit-text-stroke-color" + ], + "appliesto": "allElements", + "computed": [ + "-webkit-text-stroke-width", + "-webkit-text-stroke-color" + ], + "order": "canonicalOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke" + }, + "-webkit-text-stroke-color": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "color", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "currentcolor", + "appliesto": "allElements", + "computed": "computedColor", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color" + }, + "-webkit-text-stroke-width": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "0", + "appliesto": "allElements", + "computed": "absoluteLength", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width" + }, + "-webkit-touch-callout": { + "syntax": "default | none", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "default", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout" + }, + "-webkit-user-modify": { + "syntax": "read-only | read-write | read-write-plaintext-only", + "media": "interactive", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "read-only", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "-webkit-user-select": { + "syntax": "auto | text | none | all", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "WebKit Extensions" + ], + "initial": "auto", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/user-select" + }, + "accent-color": { + "syntax": "auto | ", + "media": "interactive", + "inherited": true, + "animationType": "byComputedValueType", + "percentages": "no", + "groups": [ + "CSS Basic User Interface" + ], + "initial": "auto", + "appliesto": "allElements", + "computed": "asAutoOrColor", + "order": "perGrammar", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/accent-color" + }, + "align-content": { + "syntax": "normal | | | ? ", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "CSS Box Alignment", + "CSS Flexible Box Layout" + ], + "initial": "normal", + "appliesto": "blockContainersMultiColumnContainersFlexContainersGridContainers", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/align-content" + }, + "align-items": { + "syntax": "normal | stretch | | [ ? ] | anchor-center", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "CSS Box Alignment", + "CSS Flexible Box Layout" + ], + "initial": "normal", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/align-items" + }, + "align-self": { + "syntax": "auto | normal | stretch | | ? | anchor-center", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "CSS Box Alignment", + "CSS Flexible Box Layout" + ], + "initial": "auto", + "appliesto": "flexItemsGridItemsAndAbsolutelyPositionedBoxes", + "computed": "autoOnAbsolutelyPositionedElementsValueOfAlignItemsOnParent", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/align-self" + }, + "align-tracks": { + "syntax": "[ normal | | | ? ]#", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "CSS Grid Layout" + ], + "initial": "normal", + "appliesto": "gridContainersWithMasonryLayoutInTheirBlockAxis", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "nonstandard" + }, + "alignment-baseline": { + "syntax": "baseline | alphabetic | ideographic | middle | central | mathematical | text-before-edge | text-after-edge", + "media": "none", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "CSS Inline" + ], + "initial": "baseline", + "appliesto": "inlineLevelBoxesFlexItemsGridItemsTableCellsAndSVGTextContentElements", + "computed": "theSpecifiedKeyword", + "order": "perGrammar", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/alignment-baseline" + }, + "all": { + "syntax": "initial | inherit | unset | revert | revert-layer", + "media": "noPracticalMedia", + "inherited": false, + "animationType": "eachOfShorthandPropertiesExceptUnicodeBiDiAndDirection", + "percentages": "no", + "groups": [ + "CSS Cascading and Inheritance" + ], + "initial": "noPracticalInitialValue", + "appliesto": "allElements", + "computed": "asSpecifiedAppliesToEachProperty", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/all" + }, + "anchor-name": { + "syntax": "none | #", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "CSS Anchor Positioning" + ], + "initial": "none", + "appliesto": "allElementsThatGenerateAPrincipalBox", + "computed": "asSpecified", + "order": "perGrammar", + "status": "experimental", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/anchor-name" + }, + "anchor-scope": { + "syntax": "none | all | #", + "media": "visual", + "inherited": false, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "CSS Anchor Positioning" + ], + "initial": "none", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "perGrammar", + "status": "experimental" + }, + "animation": { + "syntax": "#", + "media": "visual", + "inherited": false, + "animationType": "notAnimatable", + "percentages": "no", + "groups": [ + "CSS Animations" + ], + "initial": [ + "animation-name", + "animation-duration", + "animation-timing-function", + "animation-delay", + "animation-iteration-count", + "animation-direction", + "animation-fill-mode", + "animation-play-state", + "animation-timeline" + ], + "appliesto": "allElements", + "computed": [ + "animation-name", + "animation-duration", + "animation-timing-function", + "animation-delay", + "animation-direction", + "animation-iteration-count", + "animation-fill-mode", + "animation-play-state", + "animation-timeline" + ], + "order": "perGrammar", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/animation" + }, + "animation-composition": { + "syntax": "#", + "media": "visual", + "inherited": false, + "animationType": "notAnimatable", + "percentages": "no", + "groups": [ + "CSS Animations" + ], + "initial": "replace", + "appliesto": "allElements", + "computed": "asSpecified", + "order": "uniqueOrder", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/animation-composition" + }, + "animation-delay": { + "syntax": "