HTML rendering #
In this file, we define a HtmlEval instance so that elections can be rendered as a table using the
#html command from ProofWidgets.
Renders an election as a table of the votes and quotas of all parties.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[instance_reducible]
This instance enables rendering of elections using the #html command. For example,
#html election![8; [66, 67, 245, 622]]
Equations
- Apportionmentlib.instHtmlEvalElection = { eval := fun (e : Apportionmentlib.Election n) => pure e.toHtml }