rehype-parse
Advanced tools
Comparing version 8.0.4 to 8.0.5
export namespace errors { | ||
namespace abandonedHeadElementChild { | ||
const reason: string | ||
const description: string | ||
const url: boolean | ||
let reason: string | ||
let description: string | ||
let url: boolean | ||
} | ||
namespace abruptClosingOfEmptyComment { | ||
const reason_1: string | ||
let reason_1: string | ||
export {reason_1 as reason} | ||
const description_1: string | ||
let description_1: string | ||
export {description_1 as description} | ||
} | ||
namespace abruptDoctypePublicIdentifier { | ||
const reason_2: string | ||
let reason_2: string | ||
export {reason_2 as reason} | ||
const description_2: string | ||
let description_2: string | ||
export {description_2 as description} | ||
} | ||
namespace abruptDoctypeSystemIdentifier { | ||
const reason_3: string | ||
let reason_3: string | ||
export {reason_3 as reason} | ||
const description_3: string | ||
let description_3: string | ||
export {description_3 as description} | ||
} | ||
namespace absenceOfDigitsInNumericCharacterReference { | ||
const reason_4: string | ||
let reason_4: string | ||
export {reason_4 as reason} | ||
const description_4: string | ||
let description_4: string | ||
export {description_4 as description} | ||
} | ||
namespace cdataInHtmlContent { | ||
const reason_5: string | ||
let reason_5: string | ||
export {reason_5 as reason} | ||
const description_5: string | ||
let description_5: string | ||
export {description_5 as description} | ||
} | ||
namespace characterReferenceOutsideUnicodeRange { | ||
const reason_6: string | ||
let reason_6: string | ||
export {reason_6 as reason} | ||
const description_6: string | ||
let description_6: string | ||
export {description_6 as description} | ||
} | ||
namespace closingOfElementWithOpenChildElements { | ||
const reason_7: string | ||
let reason_7: string | ||
export {reason_7 as reason} | ||
const description_7: string | ||
let description_7: string | ||
export {description_7 as description} | ||
const url_1: boolean | ||
let url_1: boolean | ||
export {url_1 as url} | ||
} | ||
namespace controlCharacterInInputStream { | ||
const reason_8: string | ||
let reason_8: string | ||
export {reason_8 as reason} | ||
const description_8: string | ||
let description_8: string | ||
export {description_8 as description} | ||
} | ||
namespace controlCharacterReference { | ||
const reason_9: string | ||
let reason_9: string | ||
export {reason_9 as reason} | ||
const description_9: string | ||
let description_9: string | ||
export {description_9 as description} | ||
} | ||
namespace disallowedContentInNoscriptInHead { | ||
const reason_10: string | ||
let reason_10: string | ||
export {reason_10 as reason} | ||
const description_10: string | ||
let description_10: string | ||
export {description_10 as description} | ||
const url_2: boolean | ||
let url_2: boolean | ||
export {url_2 as url} | ||
} | ||
namespace duplicateAttribute { | ||
const reason_11: string | ||
let reason_11: string | ||
export {reason_11 as reason} | ||
const description_11: string | ||
let description_11: string | ||
export {description_11 as description} | ||
} | ||
namespace endTagWithAttributes { | ||
const reason_12: string | ||
let reason_12: string | ||
export {reason_12 as reason} | ||
const description_12: string | ||
let description_12: string | ||
export {description_12 as description} | ||
} | ||
namespace endTagWithTrailingSolidus { | ||
const reason_13: string | ||
let reason_13: string | ||
export {reason_13 as reason} | ||
const description_13: string | ||
let description_13: string | ||
export {description_13 as description} | ||
} | ||
namespace endTagWithoutMatchingOpenElement { | ||
const reason_14: string | ||
let reason_14: string | ||
export {reason_14 as reason} | ||
const description_14: string | ||
let description_14: string | ||
export {description_14 as description} | ||
const url_3: boolean | ||
let url_3: boolean | ||
export {url_3 as url} | ||
} | ||
namespace eofBeforeTagName { | ||
const reason_15: string | ||
let reason_15: string | ||
export {reason_15 as reason} | ||
const description_15: string | ||
let description_15: string | ||
export {description_15 as description} | ||
} | ||
namespace eofInCdata { | ||
const reason_16: string | ||
let reason_16: string | ||
export {reason_16 as reason} | ||
const description_16: string | ||
let description_16: string | ||
export {description_16 as description} | ||
} | ||
namespace eofInComment { | ||
const reason_17: string | ||
let reason_17: string | ||
export {reason_17 as reason} | ||
const description_17: string | ||
let description_17: string | ||
export {description_17 as description} | ||
} | ||
namespace eofInDoctype { | ||
const reason_18: string | ||
let reason_18: string | ||
export {reason_18 as reason} | ||
const description_18: string | ||
let description_18: string | ||
export {description_18 as description} | ||
} | ||
namespace eofInElementThatCanContainOnlyText { | ||
const reason_19: string | ||
let reason_19: string | ||
export {reason_19 as reason} | ||
const description_19: string | ||
let description_19: string | ||
export {description_19 as description} | ||
const url_4: boolean | ||
let url_4: boolean | ||
export {url_4 as url} | ||
} | ||
namespace eofInScriptHtmlCommentLikeText { | ||
const reason_20: string | ||
let reason_20: string | ||
export {reason_20 as reason} | ||
const description_20: string | ||
let description_20: string | ||
export {description_20 as description} | ||
} | ||
namespace eofInTag { | ||
const reason_21: string | ||
let reason_21: string | ||
export {reason_21 as reason} | ||
const description_21: string | ||
let description_21: string | ||
export {description_21 as description} | ||
} | ||
namespace incorrectlyClosedComment { | ||
const reason_22: string | ||
let reason_22: string | ||
export {reason_22 as reason} | ||
const description_22: string | ||
let description_22: string | ||
export {description_22 as description} | ||
} | ||
namespace incorrectlyOpenedComment { | ||
const reason_23: string | ||
let reason_23: string | ||
export {reason_23 as reason} | ||
const description_23: string | ||
let description_23: string | ||
export {description_23 as description} | ||
} | ||
namespace invalidCharacterSequenceAfterDoctypeName { | ||
const reason_24: string | ||
let reason_24: string | ||
export {reason_24 as reason} | ||
const description_24: string | ||
let description_24: string | ||
export {description_24 as description} | ||
} | ||
namespace invalidFirstCharacterOfTagName { | ||
const reason_25: string | ||
let reason_25: string | ||
export {reason_25 as reason} | ||
const description_25: string | ||
let description_25: string | ||
export {description_25 as description} | ||
} | ||
namespace misplacedDoctype { | ||
const reason_26: string | ||
let reason_26: string | ||
export {reason_26 as reason} | ||
const description_26: string | ||
let description_26: string | ||
export {description_26 as description} | ||
const url_5: boolean | ||
let url_5: boolean | ||
export {url_5 as url} | ||
} | ||
namespace misplacedStartTagForHeadElement { | ||
const reason_27: string | ||
let reason_27: string | ||
export {reason_27 as reason} | ||
const description_27: string | ||
let description_27: string | ||
export {description_27 as description} | ||
const url_6: boolean | ||
let url_6: boolean | ||
export {url_6 as url} | ||
} | ||
namespace missingAttributeValue { | ||
const reason_28: string | ||
let reason_28: string | ||
export {reason_28 as reason} | ||
const description_28: string | ||
let description_28: string | ||
export {description_28 as description} | ||
} | ||
namespace missingDoctype { | ||
const reason_29: string | ||
let reason_29: string | ||
export {reason_29 as reason} | ||
const description_29: string | ||
let description_29: string | ||
export {description_29 as description} | ||
const url_7: boolean | ||
let url_7: boolean | ||
export {url_7 as url} | ||
} | ||
namespace missingDoctypeName { | ||
const reason_30: string | ||
let reason_30: string | ||
export {reason_30 as reason} | ||
const description_30: string | ||
let description_30: string | ||
export {description_30 as description} | ||
} | ||
namespace missingDoctypePublicIdentifier { | ||
const reason_31: string | ||
let reason_31: string | ||
export {reason_31 as reason} | ||
const description_31: string | ||
let description_31: string | ||
export {description_31 as description} | ||
} | ||
namespace missingDoctypeSystemIdentifier { | ||
const reason_32: string | ||
let reason_32: string | ||
export {reason_32 as reason} | ||
const description_32: string | ||
let description_32: string | ||
export {description_32 as description} | ||
} | ||
namespace missingEndTagName { | ||
const reason_33: string | ||
let reason_33: string | ||
export {reason_33 as reason} | ||
const description_33: string | ||
let description_33: string | ||
export {description_33 as description} | ||
} | ||
namespace missingQuoteBeforeDoctypePublicIdentifier { | ||
const reason_34: string | ||
let reason_34: string | ||
export {reason_34 as reason} | ||
const description_34: string | ||
let description_34: string | ||
export {description_34 as description} | ||
} | ||
namespace missingQuoteBeforeDoctypeSystemIdentifier { | ||
const reason_35: string | ||
let reason_35: string | ||
export {reason_35 as reason} | ||
const description_35: string | ||
let description_35: string | ||
export {description_35 as description} | ||
} | ||
namespace missingSemicolonAfterCharacterReference { | ||
const reason_36: string | ||
let reason_36: string | ||
export {reason_36 as reason} | ||
const description_36: string | ||
let description_36: string | ||
export {description_36 as description} | ||
} | ||
namespace missingWhitespaceAfterDoctypePublicKeyword { | ||
const reason_37: string | ||
let reason_37: string | ||
export {reason_37 as reason} | ||
const description_37: string | ||
let description_37: string | ||
export {description_37 as description} | ||
} | ||
namespace missingWhitespaceAfterDoctypeSystemKeyword { | ||
const reason_38: string | ||
let reason_38: string | ||
export {reason_38 as reason} | ||
const description_38: string | ||
let description_38: string | ||
export {description_38 as description} | ||
} | ||
namespace missingWhitespaceBeforeDoctypeName { | ||
const reason_39: string | ||
let reason_39: string | ||
export {reason_39 as reason} | ||
const description_39: string | ||
let description_39: string | ||
export {description_39 as description} | ||
} | ||
namespace missingWhitespaceBetweenAttributes { | ||
const reason_40: string | ||
let reason_40: string | ||
export {reason_40 as reason} | ||
const description_40: string | ||
let description_40: string | ||
export {description_40 as description} | ||
} | ||
namespace missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers { | ||
const reason_41: string | ||
let reason_41: string | ||
export {reason_41 as reason} | ||
const description_41: string | ||
let description_41: string | ||
export {description_41 as description} | ||
} | ||
namespace nestedComment { | ||
const reason_42: string | ||
let reason_42: string | ||
export {reason_42 as reason} | ||
const description_42: string | ||
let description_42: string | ||
export {description_42 as description} | ||
} | ||
namespace nestedNoscriptInHead { | ||
const reason_43: string | ||
let reason_43: string | ||
export {reason_43 as reason} | ||
const description_43: string | ||
let description_43: string | ||
export {description_43 as description} | ||
const url_8: boolean | ||
let url_8: boolean | ||
export {url_8 as url} | ||
} | ||
namespace nonConformingDoctype { | ||
const reason_44: string | ||
let reason_44: string | ||
export {reason_44 as reason} | ||
const description_44: string | ||
let description_44: string | ||
export {description_44 as description} | ||
const url_9: boolean | ||
let url_9: boolean | ||
export {url_9 as url} | ||
} | ||
namespace nonVoidHtmlElementStartTagWithTrailingSolidus { | ||
const reason_45: string | ||
let reason_45: string | ||
export {reason_45 as reason} | ||
const description_45: string | ||
let description_45: string | ||
export {description_45 as description} | ||
} | ||
namespace noncharacterCharacterReference { | ||
const reason_46: string | ||
let reason_46: string | ||
export {reason_46 as reason} | ||
const description_46: string | ||
let description_46: string | ||
export {description_46 as description} | ||
} | ||
namespace noncharacterInInputStream { | ||
const reason_47: string | ||
let reason_47: string | ||
export {reason_47 as reason} | ||
const description_47: string | ||
let description_47: string | ||
export {description_47 as description} | ||
} | ||
namespace nullCharacterReference { | ||
const reason_48: string | ||
let reason_48: string | ||
export {reason_48 as reason} | ||
const description_48: string | ||
let description_48: string | ||
export {description_48 as description} | ||
} | ||
namespace openElementsLeftAfterEof { | ||
const reason_49: string | ||
let reason_49: string | ||
export {reason_49 as reason} | ||
const description_49: string | ||
let description_49: string | ||
export {description_49 as description} | ||
const url_10: boolean | ||
let url_10: boolean | ||
export {url_10 as url} | ||
} | ||
namespace surrogateCharacterReference { | ||
const reason_50: string | ||
let reason_50: string | ||
export {reason_50 as reason} | ||
const description_50: string | ||
let description_50: string | ||
export {description_50 as description} | ||
} | ||
namespace surrogateInInputStream { | ||
const reason_51: string | ||
let reason_51: string | ||
export {reason_51 as reason} | ||
const description_51: string | ||
let description_51: string | ||
export {description_51 as description} | ||
} | ||
namespace unexpectedCharacterAfterDoctypeSystemIdentifier { | ||
const reason_52: string | ||
let reason_52: string | ||
export {reason_52 as reason} | ||
const description_52: string | ||
let description_52: string | ||
export {description_52 as description} | ||
} | ||
namespace unexpectedCharacterInAttributeName { | ||
const reason_53: string | ||
let reason_53: string | ||
export {reason_53 as reason} | ||
const description_53: string | ||
let description_53: string | ||
export {description_53 as description} | ||
} | ||
namespace unexpectedCharacterInUnquotedAttributeValue { | ||
const reason_54: string | ||
let reason_54: string | ||
export {reason_54 as reason} | ||
const description_54: string | ||
let description_54: string | ||
export {description_54 as description} | ||
} | ||
namespace unexpectedEqualsSignBeforeAttributeName { | ||
const reason_55: string | ||
let reason_55: string | ||
export {reason_55 as reason} | ||
const description_55: string | ||
let description_55: string | ||
export {description_55 as description} | ||
} | ||
namespace unexpectedNullCharacter { | ||
const reason_56: string | ||
let reason_56: string | ||
export {reason_56 as reason} | ||
const description_56: string | ||
let description_56: string | ||
export {description_56 as description} | ||
} | ||
namespace unexpectedQuestionMarkInsteadOfTagName { | ||
const reason_57: string | ||
let reason_57: string | ||
export {reason_57 as reason} | ||
const description_57: string | ||
let description_57: string | ||
export {description_57 as description} | ||
} | ||
namespace unexpectedSolidusInTag { | ||
const reason_58: string | ||
let reason_58: string | ||
export {reason_58 as reason} | ||
const description_58: string | ||
let description_58: string | ||
export {description_58 as description} | ||
} | ||
namespace unknownNamedCharacterReference { | ||
const reason_59: string | ||
let reason_59: string | ||
export {reason_59 as reason} | ||
const description_59: string | ||
let description_59: string | ||
export {description_59 as description} | ||
} | ||
} |
@@ -1,3 +0,10 @@ | ||
/** @type {import('unified').Plugin<[Options?] | Array<void>, string, Root>} */ | ||
export default function rehypeParse(options: void | Options | undefined): void | ||
export default function rehypeParse( | ||
this: import('unified').Processor< | ||
import('hast').Root, | ||
import('hast').Root, | ||
void, | ||
void | ||
>, | ||
...settings: [(Options | undefined)?] | void[] | ||
): void | ||
export type Root = import('hast').Root | ||
@@ -43,3 +50,2 @@ export type FromParse5Options = Pick< | ||
} | ||
/** @type {Options} */ | ||
controlCharacterInInputStream: { | ||
@@ -46,0 +52,0 @@ reason: string |
@@ -39,3 +39,6 @@ /** | ||
/** @type {import('unified').Plugin<[Options?] | Array<void>, string, Root>} */ | ||
/** | ||
* @this {import('unified').Processor} | ||
* @type {import('unified').Plugin<[Options?] | Array<void>, string, Root>} | ||
*/ | ||
export default function rehypeParse(options) { | ||
@@ -42,0 +45,0 @@ const processorSettings = /** @type {Options} */ (this.data('settings')) |
{ | ||
"name": "rehype-parse", | ||
"version": "8.0.4", | ||
"version": "8.0.5", | ||
"description": "rehype plugin to parse HTML", | ||
@@ -45,3 +45,3 @@ "license": "MIT", | ||
"scripts": { | ||
"build": "rimraf \"lib/**/*.d.ts\" && tsc && type-coverage" | ||
"build": "tsc --build --clean && tsc --build && type-coverage" | ||
}, | ||
@@ -48,0 +48,0 @@ "xo": false, |
@@ -68,13 +68,13 @@ # rehype-parse | ||
In Deno with [Skypack][]: | ||
In Deno with [`esm.sh`][esmsh]: | ||
```js | ||
import rehypeParse from 'https://cdn.skypack.dev/rehype-parse@8?dts' | ||
import rehypeParse from 'https://esm.sh/rehype-parse@8' | ||
``` | ||
In browsers with [Skypack][]: | ||
In browsers with [`esm.sh`][esmsh]: | ||
```html | ||
<script type="module"> | ||
import rehypeParse from 'https://cdn.skypack.dev/rehype-parse@8?min' | ||
import rehypeParse from 'https://esm.sh/rehype-parse@8?bundle' | ||
</script> | ||
@@ -471,2 +471,6 @@ ``` | ||
<td width="10%" align="center"> | ||
<a href="https://markdown.space">Markdown Space</a><br><br> | ||
<a href="https://markdown.space"><img src="https://images.opencollective.com/markdown-space/e1038ed/logo/128.png" width="64"></a> | ||
</td> | ||
<td width="10%" align="center"> | ||
<a href="https://www.holloway.com">Holloway</a><br><br> | ||
@@ -477,3 +481,2 @@ <a href="https://www.holloway.com"><img src="https://avatars1.githubusercontent.com/u/35904294?s=128&v=4" width="64"></a> | ||
<td width="10%"></td> | ||
<td width="10%"></td> | ||
</tr> | ||
@@ -539,3 +542,3 @@ <tr valign="middle"> | ||
[skypack]: https://www.skypack.dev | ||
[esmsh]: https://esm.sh | ||
@@ -542,0 +545,0 @@ [unified]: https://github.com/unifiedjs/unified |
1075
566
66364