A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/lezer-parser/html below:

lezer-parser/html: An HTML parser for Lezer

This is an HTML grammar for the lezer parser system.

The code is licensed under an MIT license.

This package exports two bindings:

parser: Parser

The parser instance for the basic HTML grammar. Supports two dialects:

configureNesting(tags?: {
  tag: string,
  attrs?: (attrs: {[attr: string]: string}) => boolean,
  parser: Parser,
}[], attributes?: {
  name: string,
  tagName?: string,
  parser: Parser,
}[]): ParseWrapper

Create a nested parser config object which overrides the way the content of some tags or attributes is parsed. Each tag 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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4