github-actions[bot]
GitHub deploy: 37e0d470829d9045f812a828d4966cdc49f96e05
bd87891
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 })}