refac
This commit is contained in:
1 parent
0169b10979
commit
11db926a7b
3 files changed
+27
-1
No files matched your search
@@ -107,6 +107,8 @@
|
||||
<br />
|
||||
{:else if token.type === 'del'}
|
||||
<del><svelte:self id={`${id}-del`} tokens={token.tokens} {onSourceClick} /></del>
|
||||
{:else if token.type === 'underline'}
|
||||
<u><svelte:self id={`${id}-underline`} tokens={token.tokens} {onSourceClick} /></u>
|
||||
{:else if token.type === 'inlineKatex'}
|
||||
{#if token.text}
|
||||
<KatexRenderer content={token.text} displayMode={token?.displayMode ?? false} />
|
||||
|
||||
@@ -125,6 +125,11 @@
|
||||
}
|
||||
});
|
||||
|
||||
turndownService.addRule('underline', {
|
||||
filter: 'u',
|
||||
replacement: (content) => `<u>${content}</u>`
|
||||
});
|
||||
|
||||
import { onMount, onDestroy, tick, getContext } from 'svelte';
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
|
||||
|
||||
Reference in new issue
Block a user