All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.terminal21.client.components.mathjax.MathJaxLib.scala Maven / Gradle / Ivy

There is a newer version: 0.30
Show newest version
package org.terminal21.client.components.mathjax

import io.circe.generic.auto.*
import io.circe.syntax.*
import io.circe.*
import org.terminal21.client.components.{ComponentLib, UiElement}

object MathJaxLib extends ComponentLib:
  import org.terminal21.client.components.StdElementEncoding.given
  override def toJson(using Encoder[UiElement]): PartialFunction[UiElement, Json] =
    case n: MathJaxElement => n.asJson.mapObject(o => o.add("type", "MathJax".asJson))




© 2015 - 2024 Weber Informatics LLC | Privacy Policy