Skip to content

feat: HTML-like syntax - #15002

Open
Vtec234 wants to merge 30 commits into
html-typefrom
widget-html-type
Open

Vtec234 wants to merge 30 commits into
html-typefrom
widget-html-type

Conversation

@Vtec234

@Vtec234 Vtec234 commented Sep 2, 2026

Copy link
Copy Markdown
Member

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 .views rather than by looking at nodes/atoms directly.

@Vtec234 Vtec234 added the downstream Request a downstream-lean4 adaptation PR. label Sep 2, 2026
@Vtec234
Vtec234 changed the base branch from master to downstream-green September 2, 2026 21:56
@github-actions github-actions Bot added toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN labels Sep 2, 2026
@leanprover-bot leanprover-bot added the builds-manual CI has verified that the Lean Language Reference builds against this PR label Sep 2, 2026
@leanprover-bot

leanprover-bot commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

@mathlib-lean-pr-testing mathlib-lean-pr-testing Bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Sep 2, 2026
@Vtec234 Vtec234 changed the title feat: add widget HTML type feat: HTML-like syntax Sep 13, 2026
@Vtec234
Vtec234 changed the base branch from downstream-green to html-type September 13, 2026 20:44
@Vtec234
Vtec234 added this pull request to stack #15148 September 13, 2026 20:44
@downstream-lean4

Copy link
Copy Markdown

The adaptation PR for this PR is leanprover/downstream-lean4#35.

@Vtec234
Vtec234 marked this pull request as ready for review September 13, 2026 21:13
Comment thread src/Lean/Data/Html/Entities.lean
Comment thread src/Lean/Data/Html/Syntax.lean Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-manual CI has verified that the Lean Language Reference builds against this PR builds-mathlib CI has verified that Mathlib builds against this PR changelog-added downstream Request a downstream-lean4 adaptation PR. mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants