enh: model desc md support

This commit is contained in:
Timothy J. Baek
2024-06-15 04:32:18 -06:00
parent dfa2cf9e6d
commit fe9685867e
3 changed files with 13 additions and 3 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
<script lang="ts">
import { onDestroy } from 'svelte';
import { marked } from 'marked';
import tippy from 'tippy.js';
export let placement = 'top';
@@ -15,7 +17,7 @@
tooltipInstance.setContent(content);
} else {
tooltipInstance = tippy(tooltipElement, {
content: content,
content: marked.parse(content),
placement: placement,
allowHTML: true,
touch: touch