Skip to content

Commit

Permalink
add support for all math variants
Browse files Browse the repository at this point in the history
  • Loading branch information
eniraa committed Mar 4, 2024
1 parent 95b2e81 commit 1735f0f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/src/converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,11 @@ impl ContentVisitor for ContentConverter<'_> {
let font = match _variant {
Some(typst::math::MathVariant::Bb) => "mathbb",
Some(typst::math::MathVariant::Cal) => "mathcal",
Some(typst::math::MathVariant::Serif) => unimplemented!(),
Some(typst::math::MathVariant::Sans) => unimplemented!(),
Some(typst::math::MathVariant::Frak) => unimplemented!(),
Some(typst::math::MathVariant::Mono) => unimplemented!(),
None => "mathrm"
Some(typst::math::MathVariant::Serif) => "mathrm",
Some(typst::math::MathVariant::Sans) => "mathsf",
Some(typst::math::MathVariant::Frak) => "mathfrak",
Some(typst::math::MathVariant::Mono) => "mathtt",
None => "mathnormal"
}.to_string();

let node = katex::FontBuilder::default()
Expand Down

0 comments on commit 1735f0f

Please sign in to comment.