{"name":"@lezer/html","version":"1.3.7","author":{"name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","_id":"@lezer/html@1.3.7","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":"d15fcdf441c8516bfe7411e283c1467a117fe9b1","tarball":"http://registry-npm.ywwl.com/@lezer/html/download/@lezer/html-1.3.7.tgz","fileCount":22,"integrity":"sha512-Wo+rZ5UjLP0VqUTyXjzgmTYRW5bvTJUFn4Uw0K3HCQjX2/+f+zRo9GLN5BCAojwHQISPvaQk8BWSv2SSKx/UcQ==","signatures":[{"sig":"MEYCIQCm+IH69bFr35R9Isa30FxVzuSicLFvH3N+486EC57togIhANauyX+YAttQnnNxygOwKq8cm/PPfcqkbUJmOEX+Zg/x","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":93362,"size":24658,"noattachment":false,"key":"/@lezer/html/-/@lezer/html-1.3.7.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":"d8e395002afc553d37ba9f01d62205e44f6c5e84","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":"9.6.7","description":"lezer-based HTML grammar","directories":{},"_nodeVersion":"19.7.0","dependencies":{"@lezer/lr":"^1.0.0","@lezer/common":"^1.0.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.7_1700731951738_0.13575066377181644","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":1700731951906,"_cnpm_publish_time":1700731951906,"dist-tags":{"latest":"1.3.13"}}