miso
Copyright(C) 2016-2026 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Mathml

Contents

Description

MathML element combinators for rendering mathematical expressions in Miso views. Re-exports everything from Miso.Mathml.Element.

Example — render :

xSquared :: View model action
xSquared =
  math_ []
    [ msup_ []
        [ mi_ [] [ text "x" ]
        , mn_ [] [ text "2" ]
        ]
    ]

For a more complete example see miso-mathml.

Synopsis

Elements