use serde::Serialize; use super::render_context::RenderContext; use crate::error::CustomError; use crate::intermediate::ILatexFragment; use super::macros::render; #[derive(Debug, Serialize)] #[serde(tag = "type")] #[serde(rename = "latex_fragment")] pub(crate) struct RenderLatexFragment { value: String, } render!( RenderLatexFragment, ILatexFragment, original, _render_context, { Ok(RenderLatexFragment { value: original.value.clone(), }) } );