github-actions[bot]
GitHub deploy: 4831c9e57e35a0619d9212b7b573e2c6a9443c8c
0fe4404
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 })}