# lezer-html

> lezer-based HTML grammar

Latest version **0.13.6** (published 2021-06-16) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install lezer-html
pnpm add lezer-html
yarn add lezer-html
bun add lezer-html
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.13.6 |
| Published | 2021-06-16 |
| First published | 2019-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 58.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Marijn Haverbeke |
| Maintainers | marijn |

## Links

- npm: https://www.npmjs.com/package/lezer-html
- Repository: https://github.com/lezer-parser/html
- Homepage: https://github.com/lezer-parser/html#readme
- Issues: https://github.com/lezer-parser/html/issues
- npm.io page: https://npm.io/package/lezer-html

## Dependencies (1)

- [lezer](https://npm.io/package/lezer.md) ^0.13.3

## Recent versions

- 0.13.6 (latest) — 2021-06-16
- 0.13.5 — 2021-05-05
- 0.13.4 — 2021-03-10
- 0.13.3 — 2021-02-17
- 0.13.2 — 2021-01-22
- 0.13.1 — 2020-12-04
- 0.13.0 — 2020-12-04
- 0.12.0 — 2020-10-23
- 0.11.1 — 2020-09-26
- 0.11.0 — 2020-09-26
- 0.10.0 — 2020-08-07
- 0.9.0 — 2020-06-08
- 0.8.4 — 2020-04-09
- 0.8.3 — 2020-04-01
- 0.8.2 — 2020-02-28
- … 8 more at https://npm.io/package/lezer-html/versions

## README

# lezer-html

This is an HTML grammar for the
[lezer](https://lezer.codemirror.net/) parser system.

The code is licensed under an MIT license.

## Interface

This package exports two bindings:

**`parser`**`: Parser`

The parser instance for the basic HTML grammar.

**`configureNesting`**`(tags: {`\
`  tag: string,`\
`  attrs?: (attrs: {[attr: string]: string}) => boolean,`\
`  parser: {startParse: (input: Input, startPos: number, context: ParseContext) => PartialParse},`\
`}[]): {[name: string]: NestedParser}`

Create a nested parser config object which overrides the way the
content of some tags is parsed. Each override is an object with a
`tag` property holding the (lower case) tag name to override, and an
optional `attrs` predicate that, if given, has to return true for the
tag's attributes for this override to apply.

The `parser` property describes the way the tag's content is parsed.

---
_Source: https://npm.io/package/lezer-html · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
