Skip to content

feat: adopt upstream HTML syntax - #197

Open
Vtec234 wants to merge 1 commit into
leanprover:mainfrom
Vtec234:html
Open

Vtec234 wants to merge 1 commit into
leanprover:mainfrom
Vtec234:html

Conversation

@Vtec234

@Vtec234 Vtec234 commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

This PR adapts VIR to use the upstream HTML syntax.

@Vtec234 Vtec234 changed the title Html feat: adopt upstream HTML syntax Sep 23, 2026
@ejgallego ejgallego added this to the 0.2.0 milestone Sep 30, 2026
meefs pushed a commit to meefs/lean4 that referenced this pull request Oct 6, 2026
This PR adds HTML-like syntax to `Lean.Data.Html.Syntax`, together with
an elaborator from the syntax into `Lean.Data.Html`.

The syntax is agnostic of the type it will be elaborated into. Most of
the complexity (handling whitespace, decoding HTML character references)
is pushed into parsing in order to simplify downstream elaborators. We
expose `.view` functions (e.g. `Html.Content.view`) that provide
convenient inductive descriptions of what was parsed. Downstream
elaborators are expected to process syntax using `.view`s rather than by
looking at nodes/atoms directly.

The downstream-lean4 adaptation PR adopts the new syntax throughout
supported packages. VIR is adapted in
- leanprover/lean-vir#197
ejgallego added a commit that referenced this pull request Oct 9, 2026
This PR adopts the `jsx%{...}` notation suggested in #197, keeping JSX elements separate from Lean terms and do-block statements.

- Expose JSX literals and `js_field%` on import, remove the Jsx scope requirement, and migrate callers and documentation.
- Preserve the pinned Lean 4.35 toolchain and native props/child semantics; defer upstream HTML parser integration until Lean 4.36.

Co-authored-by: Wojciech Nawrocki <[email protected]>

This branch has not been deployed

No deployments
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.

2 participants