use typst_syntax::Span;
use crate::foundations::{Content, NativeElement, elem, func};
use crate::math::Mathy;
#[func(title = "Square Root")]
pub fn sqrt(
span: Span,
radicand: Content,
) -> Content {
RootElem::new(radicand).pack().spanned(span)
}
#[elem(Mathy)]
pub struct RootElem {
#[positional]
pub index: Option<Content>,
#[required]
pub radicand: Content,
}