Skip to content

feat(parser): add YAHTML AST parser API#8

Merged
han4wluc merged 3 commits intomainfrom
feat/parser-ast-api
Feb 13, 2026
Merged

feat(parser): add YAHTML AST parser API#8
han4wluc merged 3 commits intomainfrom
feat/parser-ast-api

Conversation

@han4wluc
Copy link
Contributor

@han4wluc han4wluc commented Feb 13, 2026

Summary

  • add parseElementKey API for selector/attribute parsing with offsets
  • add parseYahtmlAst API to build structured YAHTML AST nodes (root, element, text, rawHtml, doctype, fragment)
  • keep convertToHtml behavior unchanged while exposing parser APIs from package entrypoints
  • split self-closing tags to shared src/constants.js
  • move parser tests into Puty YAML specs under spec/parser.spec.yaml for parser-grade coverage
  • bump package version from 0.0.4 to 0.0.5

Validation

  • bun run test (passes: 130/130)

@han4wluc han4wluc merged commit 4bd7e15 into main Feb 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant