We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e442fa commit d9b08f8Copy full SHA for d9b08f8
1 file changed
src/html-to-ast.ts
@@ -30,21 +30,6 @@ import { StructuredSource } from "structured-source";
30
import { nodeTypes, tagNameToType } from "./mapping.js";
31
import { Element, RootContent } from "hast";
32
33
-/**
34
- * Remove undocumented properties on TxtNode from node
35
- */
36
-// function removeUnusedProperties(node: Element) {
37
-// if (typeof node !== "object") {
38
-// return;
39
-// }
40
-// ["position"].forEach(function (key) {
41
-// if (node.hasOwnProperty(key)) {
42
-// // @ts-expect-error: delete key
43
-// delete node[key];
44
45
-// });
46
47
-
48
function mapNodeType(node: RootContent, parent: TraverseContext | undefined) {
49
if (parent) {
50
const parentNode = parent.parent?.node;
0 commit comments