github-actions[bot]
GitHub deploy: e31f680788910b04a1709271979c1b416f1b839a
efe3ae2
raw
history blame contribute delete
274 Bytes
<script lang="ts">
import katex from 'katex';
import 'katex/contrib/mhchem';
import 'katex/dist/katex.min.css';
export let content: string;
export let displayMode: boolean = false;
</script>
{@html katex.renderToString(content, { displayMode, throwOnError: false })}