-----------------------------------------------------------------------------
{-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
-- |
-- Module      :  Miso.Mathml.Element
-- Copyright   :  (C) 2016-2025 David M. Johnson
-- License     :  BSD3-style (see the file LICENSE)
-- Maintainer  :  David M. Johnson <code@dmj.io>
-- Stability   :  experimental
-- Portability :  non-portable
----------------------------------------------------------------------------
module Miso.Mathml.Element
  ( -- ** Combinator
    nodeMathml
  , math_
  ) where
-----------------------------------------------------------------------------
import           Miso.Html.Types
import           Miso.String (MisoString)
-----------------------------------------------------------------------------
-- | Used to construct @Node@ in @View@
nodeMathml :: MisoString -> [Attribute action] -> [View action] -> View action
nodeMathml :: forall action.
MisoString -> [Attribute action] -> [View action] -> View action
nodeMathml MisoString
nodeName = NS
-> MisoString
-> Maybe Key
-> [Attribute action]
-> [View action]
-> View action
forall action.
NS
-> MisoString
-> Maybe Key
-> [Attribute action]
-> [View action]
-> View action
node NS
MATHML MisoString
nodeName Maybe Key
forall a. Maybe a
Nothing
-----------------------------------------------------------------------------
-- | https://developer.mozilla.org/en-US/docs/Web/MathML/Reference/Element/math
math_ :: [Attribute action] -> [View action] -> View action
math_ :: forall action. [Attribute action] -> [View action] -> View action
math_ = MisoString -> [Attribute action] -> [View action] -> View action
forall action.
MisoString -> [Attribute action] -> [View action] -> View action
nodeMathml MisoString
"math"
-----------------------------------------------------------------------------