Repository navigation
feat: HTML-like syntax - #15002
Merged
Merged
feat: HTML-like syntax#15002
Conversation
Collaborator
|
Reference manual CI status:
|
|
Mathlib CI status (docs):
|
Vtec234
force-pushed
the
widget-html-type
branch
from
September 13, 2026 20:38
cd37304 to
1c3f21b
Compare
|
The adaptation PR for this PR is leanprover/downstream-lean4#35. |
Vtec234
marked this pull request as ready for review
September 13, 2026 21:13
Vtec234
force-pushed
the
widget-html-type
branch
from
September 16, 2026 18:23
634eb62 to
61a598e
Compare
Vtec234
force-pushed
the
widget-html-type
branch
from
September 16, 2026 22:25
61a598e to
e496ef6
Compare
Vtec234
force-pushed
the
widget-html-type
branch
from
September 22, 2026 22:28
71612f8 to
de5d0e2
Compare
Vtec234
force-pushed
the
widget-html-type
branch
from
October 4, 2026 18:45
de5d0e2 to
b188d3f
Compare
Vtec234
enabled auto-merge
October 5, 2026 20:30
downstream-lean4 Bot
added a commit
to leanprover/downstream-lean4
that referenced
this pull request
Oct 6, 2026
This is the adaptation PR for leanprover/lean4#15002. --------- Co-authored-by: downstream-lean4[bot] <downstream-lean4[bot]@users.noreply.github.com> Co-authored-by: Wojciech Nawrocki <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds HTML-like syntax to
Lean.Data.Html.Syntax, together with an elaborator from the syntax intoLean.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
.viewfunctions (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.The downstream-lean4 adaptation PR adopts the new syntax throughout supported packages. VIR is adapted in