0.13.6 • Published 3 years ago

lezer-html v0.13.6

Weekly downloads
1,639
License
MIT
Repository
github
Last release
3 years ago

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.

0.13.6

3 years ago

0.13.5

3 years ago

0.13.4

3 years ago

0.13.3

3 years ago

0.13.2

3 years ago

0.13.0

3 years ago

0.13.1

3 years ago

0.12.0

4 years ago

0.11.1

4 years ago

0.11.0

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.4

4 years ago

0.8.3

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.5.2

4 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago