mdast-util-to-hast
Advanced tools
Comparing version 11.2.1 to 11.3.0
@@ -6,2 +6,3 @@ export {toHast} from './lib/index.js' | ||
export type H = import('./lib/index.js').H | ||
export type Raw = import('./complex-types').Raw | ||
export {one, all} from './lib/traverse.js' |
@@ -6,2 +6,3 @@ /** | ||
* @typedef {import('./lib/index.js').H} H | ||
* @typedef {import('./complex-types').Raw} Raw | ||
*/ | ||
@@ -8,0 +9,0 @@ |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -11,4 +11,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -15,0 +15,0 @@ | undefined |
@@ -15,4 +15,3 @@ /** | ||
export function html(h, node) { | ||
// @ts-expect-error non-standard raw nodes. | ||
return h.dangerous ? h.augment(node, u('raw', node.value)) : null | ||
} |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -11,4 +11,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -15,0 +15,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -9,4 +9,4 @@ /** | ||
): | ||
| import('../index.js').Content | ||
| import('../index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -13,0 +13,0 @@ | undefined |
@@ -26,4 +26,4 @@ /** | ||
export type Root = import('hast').Root | ||
export type Content = import('hast').ElementContent | ||
export type PositionLike = import('unist-util-position').PositionLike | ||
export type Content = Element | Text | Comment | ||
export type EmbeddedHastFields = { | ||
@@ -41,3 +41,3 @@ /** | ||
*/ | ||
hChildren?: Content[] | undefined | ||
hChildren?: import('hast').ElementContent[] | undefined | ||
} | ||
@@ -65,3 +65,3 @@ /** | ||
props: Properties, | ||
children?: Content[] | null | undefined | ||
children?: import('hast').ElementContent[] | null | undefined | ||
) => Element | ||
@@ -71,3 +71,3 @@ export type HFunctionNoProps = ( | ||
tagName: string, | ||
children?: Content[] | null | undefined | ||
children?: import('hast').ElementContent[] | null | undefined | ||
) => Element | ||
@@ -74,0 +74,0 @@ export type HFields = { |
@@ -12,6 +12,5 @@ /** | ||
* @typedef {import('hast').Root} Root | ||
* @typedef {import('hast').ElementContent} Content | ||
* @typedef {import('unist-util-position').PositionLike} PositionLike | ||
* | ||
* @typedef {Element|Text|Comment} Content | ||
* | ||
* @typedef EmbeddedHastFields | ||
@@ -18,0 +17,0 @@ * @property {string} [hName] Defines the tag name of an element |
@@ -10,4 +10,4 @@ /** | ||
): | ||
| import('./index.js').Content | ||
| import('./index.js').Content[] | ||
| import('hast').ElementContent | ||
| import('hast').ElementContent[] | ||
| null | ||
@@ -19,3 +19,3 @@ | undefined | ||
*/ | ||
export function all(h: H, parent: MdastNode): import('./index.js').Content[] | ||
export function all(h: H, parent: MdastNode): import('hast').ElementContent[] | ||
export type MdastNode = | ||
@@ -22,0 +22,0 @@ | import('mdast').Root |
{ | ||
"name": "mdast-util-to-hast", | ||
"version": "11.2.1", | ||
"version": "11.3.0", | ||
"description": "mdast utility to transform to hast", | ||
@@ -33,2 +33,3 @@ "license": "MIT", | ||
"lib/", | ||
"complex-types.d.ts", | ||
"index.d.ts", | ||
@@ -68,3 +69,3 @@ "index.js" | ||
"prepack": "npm run build && npm run format", | ||
"build": "rimraf \"{lib/**/**,test/**,}*.d.ts\" && tsc && type-coverage", | ||
"build": "rimraf \"{lib/**/**,test/**}*.d.ts\" \"index.d.ts\" && tsc && type-coverage", | ||
"format": "remark . -qfo && prettier -w . --loglevel warn && xo --fix", | ||
@@ -71,0 +72,0 @@ "test-api": "node test/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57694
62
1566