enh: text fade in effect
This commit is contained in:
1 parent
dcb1c0a146
commit
853cf82ed8
6 files changed
+45
-3
No files matched your search
@@ -14,8 +14,10 @@
|
||||
import KatexRenderer from './KatexRenderer.svelte';
|
||||
import Source from './Source.svelte';
|
||||
import HtmlToken from './HTMLToken.svelte';
|
||||
import TextToken from './MarkdownInlineTokens/TextToken.svelte';
|
||||
|
||||
export let id: string;
|
||||
export let done = true;
|
||||
export let tokens: Token[];
|
||||
export let onSourceClick: Function = () => {};
|
||||
</script>
|
||||
@@ -66,6 +68,6 @@
|
||||
onload="this.style.height=(this.contentWindow.document.body.scrollHeight+20)+'px';"
|
||||
></iframe>
|
||||
{:else if token.type === 'text'}
|
||||
{token.raw}
|
||||
<TextToken {token} {done} />
|
||||
{/if}
|
||||
{/each}
|
||||
Reference in new issue
Block a user