lezer-html

lezer-based HTML grammar

This package has been replaced by @lezer/html
Last updated 5 years ago by marijn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install lezer-html 
SYNC missed versions from official npm registry.

lezer-html

This is an HTML grammar for the lezer 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.

Current Tags

  • 0.13.6                                ...           latest (5 years ago)

23 Versions

  • 0.13.6 [deprecated]           ...           5 years ago
  • 0.13.5 [deprecated]           ...           6 years ago
  • 0.13.4 [deprecated]           ...           6 years ago
  • 0.13.3 [deprecated]           ...           6 years ago
  • 0.13.2 [deprecated]           ...           6 years ago
  • 0.13.1 [deprecated]           ...           6 years ago
  • 0.13.0 [deprecated]           ...           6 years ago
  • 0.12.0 [deprecated]           ...           6 years ago
  • 0.11.1 [deprecated]           ...           6 years ago
  • 0.11.0 [deprecated]           ...           6 years ago
  • 0.10.0 [deprecated]           ...           6 years ago
  • 0.9.0 [deprecated]           ...           6 years ago
  • 0.8.4 [deprecated]           ...           7 years ago
  • 0.8.3 [deprecated]           ...           7 years ago
  • 0.8.2 [deprecated]           ...           7 years ago
  • 0.8.1 [deprecated]           ...           7 years ago
  • 0.8.0 [deprecated]           ...           7 years ago
  • 0.7.0 [deprecated]           ...           7 years ago
  • 0.5.2 [deprecated]           ...           7 years ago
  • 0.5.1 [deprecated]           ...           7 years ago
  • 0.5.0 [deprecated]           ...           7 years ago
  • 0.4.0 [deprecated]           ...           7 years ago
  • 0.3.0 [deprecated]           ...           7 years ago
Maintainers (1)
Downloads
Total 6
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 6
Last Month 0
Dependencies (1)
Dev Dependencies (5)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE