{"name":"@lezer/html","version":"0.15.0","author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@lezer/html@0.15.0","maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"homepage":"https://github.com/lezer-parser/html#readme","bugs":{"url":"https://github.com/lezer-parser/html/issues"},"dist":{"shasum":"572c9444bc39c1afc0529a70e089abf7254edf5d","tarball":"http://registry-npm.ywwl.com/@lezer/html/download/@lezer/html-0.15.0.tgz","fileCount":18,"integrity":"sha512-ErmgP/Vv0AhYJvs/Ekb9oue4IzBHemKLi7K8tJ0jgS+20Y8FGC9foK6knCXtEHqdPaxVGQH9PVp7gecLnzLd9Q==","signatures":[{"sig":"MEQCIFh57KH8r01828WotrvdDkRNUrL0vwDEp+xX0znoquo3AiBORyodm1+rC9wK/xXMAt0OhFkegaNLum+dh+E56XlcqA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70600,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhE6HVCRA9TVsSAnZWagAA/84QAIslEGxWkmZ6DzNNCkCu\nLJB+3WQzmFp/U+OY6LbvnDPnQmmkqAd0lyMlbA4Bl+QgEdVemX3YvNIULlbk\nSDl/TKUHm65wtzopdXvecgxVzTFhyag8HXfYnudmDgsM/Mdepcxaq+HH6vop\nU/OjSLrjYrNAEEu+dMMWCD2XC0WQsRDQ6M42GRijTYSpdFgCe0s2NdXhngyw\nRd/sWcXq73vSzJMzHfiVPOoHBgRiK+Qtns/nnX+k9SAJQlvrL7m2AnzeD6xX\n1pLAMY2jPAGwG1FsYSGNODzyKDa0qmM8+bwADoakgWT5xseLPizU6ZKSeV0l\n6bPYoekRY0wMx/m8wHpPeMJWnfSJljKCVdQG+ePciyJzdeJ1A0B7TRkWL050\nGxx/Qk7P5VlhwqrwmHgmULmfVMdqK5zP6wVHJTKZXsdrUfrqw0iqGdaX0Lfe\nnf50PPZffnlIGv6pan6w1ky3xMRqkwa57o1wSrk4uUnB9fOFPTFCyIY+0VS9\nVh13puiwk5LEXyleId4oeZiqqEbv6EZ8NOslII8MRTb8wKChV/vCZ7mQ7u5x\nT3z15AKcwezhYBYvn/ethuqOWSiKpyhJwJ38AmkEUAjPd3vsgJ92t+z1KFhh\ndIMgEWe7gn66HXuCkFb1NoTQDeGPQRaf+QqdGeHh5KuhtyWfps5E5mR3DUac\ns8s5\r\n=znSV\r\n-----END PGP SIGNATURE-----\r\n","size":15545,"noattachment":false,"key":"/@lezer/html/-/@lezer/html-0.15.0.tgz"},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.es.js","exports":{"import":"./dist/index.es.js","require":"./dist/index.cjs"},"gitHead":"a81a2f5d1619fae384d350c7816a0cf969d14e11","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":"marijnh@gmail.com"},"repository":{"url":"git+https://github.com/lezer-parser/html.git","type":"git"},"_npmVersion":"7.18.1","description":"lezer-based HTML grammar","directories":{},"_nodeVersion":"16.4.0","dependencies":{"@lezer/lr":"^0.15.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^9.0.1","rollup":"^2.52.2","@lezer/generator":"^0.15.0","@lezer/javascript":"^0.15.0","@rollup/plugin-node-resolve":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/html_0.15.0_1628676565713_0.33452742403172997","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":1628676565858,"_cnpm_publish_time":1628676565858,"dist-tags":{"latest":"1.3.13"}}