Widgets UI helpers #
Shared HTML formatting, status badges, DOT label escaping, and source-location handling for ProofWidgets viewers. These helpers run in the infoview's meta code, not the model runtime.
References:
- ProofWidgets: https://github.com/leanprover-community/ProofWidgets4
- GraphViz DOT label escaping rules: https://graphviz.org/doc/info/lang.html
Mark a macro-generated command as the source location of its widget panel.
Instances For
Render a string as monospace code, using VS Code theme fonts when available.
Instances For
Render a small “pill” badge (used for compact key/value metadata).
Instances For
Render a warning badge.
Instances For
Render a boolean flag: green when set, muted otherwise.
Instances For
Escape a string so it is safe to embed inside a double-quoted DOT node label.