{"name":"@lezer/html","version":"1.3.8","author":{"name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","_id":"@lezer/html@1.3.8","maintainers":[{"name":"marijn","email":"marijn@haverbeke.berlin"}],"homepage":"https://github.com/lezer-parser/html#readme","bugs":{"url":"https://github.com/lezer-parser/html/issues"},"dist":{"shasum":"e0c8b28f91607787ab6696a1dd802c0c38f679e4","tarball":"http://registry-npm.ywwl.com/@lezer/html/download/@lezer/html-1.3.8.tgz","fileCount":21,"integrity":"sha512-EXseJ3pUzWxE6XQBQdqWHZqqlGQRSuNMBcLb6mZWS2J2v+QZhOObD+3ZIKIcm59ntTzyor4LqFTb72iJc3k23Q==","signatures":[{"sig":"MEYCIQD1TJpjsG0R5QvY2nVq6SCVusWOrjL+yzW17fxCfaC1rAIhANT28QMcU5qrEHBYPSVVUAa7qiXu0SPKwm2T52aaiE8Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":93924,"size":25149,"noattachment":false,"key":"/@lezer/html/-/@lezer/html-1.3.8.tgz"},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"gitHead":"fa8c9d581062bbf9d9d018637657a196d4e0cf0e","scripts":{"test":"mocha test/test-*.js","build":"lezer-generator src/html.grammar -o src/parser && rollup -c","prepare":"npm run build","build-debug":"lezer-generator src/html.grammar --names -o src/parser && rollup -c"},"_npmUser":{"name":"marijn","email":"marijn@haverbeke.berlin"},"repository":{"url":"git+https://github.com/lezer-parser/html.git","type":"git"},"_npmVersion":"10.2.5","description":"lezer-based HTML grammar","directories":{},"_nodeVersion":"21.4.0","dependencies":{"@lezer/lr":"^1.0.0","@lezer/common":"^1.2.0","@lezer/highlight":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","rollup":"^2.52.2","@lezer/generator":"^1.0.0","@lezer/javascript":"^1.0.0","@rollup/plugin-node-resolve":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/html_1.3.8_1703783940086_0.1835594600480681","host":"s3://npm-registry-packages"},"readme":"# @lezer/html\n\nThis is an HTML grammar for the\n[lezer](https://lezer.codemirror.net/) parser system.\n\nThe code is licensed under an MIT license.\n\n## Interface\n\nThis package exports two bindings:\n\n**`parser`**`: Parser`\n\nThe parser instance for the basic HTML grammar. Supports two dialects:\n\n - `\"noMatch\"` turns off tag matching, creating regular syntax nodes\n   even for mismatched tags.\n\n - `\"selfClosing\"` adds support for `/>` self-closing tag syntax.\n\n**`configureNesting`**`(tags?: {`\\\n`  tag: string,`\\\n`  attrs?: (attrs: {[attr: string]: string}) => boolean,`\\\n`  parser: Parser,`\\\n`}[], attributes?: {`\\\n`  name: string,`\\\n`  tagName?: string,`\\\n`  parser: Parser,`\\\n`}[]): ParseWrapper`\n\nCreate a nested parser config object which overrides the way the\ncontent of some tags or attributes is parsed. Each tag override is an\nobject with a `tag` property holding the (lower case) tag name to\noverride, and an optional `attrs` predicate that, if given, has to\nreturn true for the tag's attributes for this override to apply.\n\nThe `parser` property describes the way the tag's content is parsed.\n","publish_time":1703783940272,"_cnpm_publish_time":1703783940272,"dist-tags":{"latest":"1.3.13"}}