wraith/node_modules/@lezer/html/README.md
Vantz Stockwell 2848d79915 feat: Phase 1 complete — Tauri v2 foundation
Rust backend: SQLite (WAL mode, 8 tables), vault encryption
(Argon2id + AES-256-GCM), settings/connections/credentials
services, 19 Tauri command wrappers. 46/46 tests passing.

Vue 3 frontend: unlock/create vault flow, Pinia app store,
Tailwind CSS v4 dark theme with Wraith branding.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 15:09:41 -04:00

1.1 KiB

@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. Supports two dialects:

  • "noMatch" turns off tag matching, creating regular syntax nodes even for mismatched tags.

  • "selfClosing" adds support for /> self-closing tag syntax.

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.