refac/enh: mention token rendering
This commit is contained in:
1 parent
22e11760a1
commit
098f34f400
7 files changed
+108
-6
No files matched your search
@@ -0,0 +1,10 @@
|
||||
<script lang="ts">
|
||||
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
||||
import type { Token } from 'marked';
|
||||
|
||||
export let token: Token;
|
||||
</script>
|
||||
|
||||
<Tooltip as="span" className="mention" content={token.id} placement="top">
|
||||
{token.triggerChar}{token.label}
|
||||
</Tooltip>
|
||||
Reference in new issue
Block a user