{"name":"@lezer/html","version":"1.3.10","author":{"name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","_id":"@lezer/html@1.3.10","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":"1be9a029a6fe835c823b20a98a449a630416b2af","tarball":"http://registry-npm.ywwl.com/@lezer/html/download/@lezer/html-1.3.10.tgz","fileCount":23,"integrity":"sha512-dqpT8nISx/p9Do3AchvYGV3qYc4/rKr3IBZxlHmpIKam56P47RSHkSF5f13Vu9hebS1jM0HmtJIwLbWz1VIY6w==","signatures":[{"sig":"MEYCIQCiqhLF4e7dB60NaWeQZ3qsGV18BrMaEFo9RrY5wSCWngIhAMeB6ZOcgMncjdqJx13w3vxilnJxKmVOa4IGZlSp+66h","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94333,"size":25256,"noattachment":false,"key":"/@lezer/html/-/@lezer/html-1.3.10.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":"2ffc7dd12a206364a9fc549dc65a9f190cb61e29","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.8.0","description":"lezer-based HTML grammar","directories":{},"_nodeVersion":"20.13.1","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.10_1716960952914_0.5331099340810401","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":1716960953072,"_cnpm_publish_time":1716960953072,"dist-tags":{"latest":"1.3.13"}}