typst-2-rsx 0.1.0

Convert Typst documents into RSX SVG elements for use in Rust UI development.
Documentation
#set page(width:auto,height:auto,margin:10pt);
#set text(size:40pt);
*Date:* 26.12.2022 
#highlight[important]\
#lorem(3)\
#overline[A line over text.]\ 
#underline[important].\
#raw("fn " + "main() {}", lang: "rust")
#strike[not]\
Revenue#sub[yearly] 1#super[st] try!
$ 1+1=2 $ 
$grave(a) = accent(a, `)$
$attach(
  Pi, t: alpha, b: beta,
  tl: 1, tr: 2+3, bl: 4+5, br: 6,
) $
$binom(n, k) $
$(a dot b dot cancel(x)) /
    cancel(x) $
$ f(x, y) := cases(
  1 "if" (x dot y)/2 <= 0,
  2 "if" x "is even",
  3 "if" x in NN,
  4 "else",
) $
$1/2 < (x+1)/2 $
$lr(]sum_(x=1)^n], size: #50%) x $
$mat(
  1, 2, ..., 10;
  2, 2, ..., 10;
  dots.v, dots.v, dots.down, dots.v;
  10, 10, ..., 10;
) $\
$root(3, x) $
$f : X stretch(->>, size: #150%)_"surjective" Y $\
$underbrace(1 + 2 + ... + 5, "numbers") $ $ frak(P)$
$paren.r.double$ #emoji.abacus