{"name":"@lezer/html","version":"1.3.13","description":"lezer-based HTML grammar","main":"dist/index.cjs","type":"module","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"module":"dist/index.js","types":"dist/index.d.ts","author":{"name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","devDependencies":{"@lezer/javascript":"^1.0.0","@lezer/generator":"^1.0.0","mocha":"^10.2.0","rollup":"^2.52.2","@rollup/plugin-node-resolve":"^9.0.0"},"dependencies":{"@lezer/lr":"^1.0.0","@lezer/highlight":"^1.0.0","@lezer/common":"^1.2.0"},"repository":{"type":"git","url":"git+https://github.com/lezer-parser/html.git"},"scripts":{"build":"lezer-generator src/html.grammar -o src/parser && rollup -c","build-debug":"lezer-generator src/html.grammar --names -o src/parser && rollup -c","prepare":"npm run build","test":"mocha test/test-*.js"},"gitHead":"36d7e20ef97982ed97e27ab63151326b8ed2ba53","_id":"@lezer/html@1.3.13","bugs":{"url":"https://github.com/lezer-parser/html/issues"},"homepage":"https://github.com/lezer-parser/html#readme","_nodeVersion":"22.20.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-oI7n6NJml729m7pjm9lvLvmXbdoMoi2f+1pwSDJkl9d68zGr7a9Btz8NdHTGQZtW2DA25ybeuv/SyDb9D5tseg==","shasum":"6a1305ae3bd2c9c01f877f8a8dc1e15ec652d01c","tarball":"http://registry-npm.ywwl.com/@lezer/html/download/@lezer/html-1.3.13.tgz","fileCount":22,"unpackedSize":93870,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGfDh8boMWTXIHQfcFkL9zWKYOHLwPtg0JA8hgTtD21aAiEA11gCXRASiaM/xX8MntcAYD6LrWKD1t4kvP3oCeIc6WI="}],"size":25213,"noattachment":false,"key":"/@lezer/html/-/@lezer/html-1.3.13.tgz"},"_npmUser":{"name":"marijn","email":"marijn@haverbeke.berlin"},"directories":{},"maintainers":[{"name":"marijn","email":"marijn@haverbeke.berlin"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/html_1.3.13_1766417948488_0.7021221651188025"},"_hasShrinkwrap":false,"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":1766417948646,"_cnpm_publish_time":1766417948646,"dist-tags":{"latest":"1.3.13"}}