From d704be19afb2e4701a1947a28ef4970d0b3acfa3 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Thu, 24 Oct 2024 01:11:49 -0700 Subject: post: the oshimark problem --- src/components/Latex.astro | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/components/Latex.astro (limited to 'src/components') diff --git a/src/components/Latex.astro b/src/components/Latex.astro new file mode 100644 index 0000000..f335189 --- /dev/null +++ b/src/components/Latex.astro @@ -0,0 +1,18 @@ +--- +import katex from 'katex'; + +const { formula = '' } = Astro.props; +const html = katex.renderToString(formula, {throwOnError: false}); +--- + +
+ +
+ + + -- cgit v1.2.3