|
@@ -169,14 +169,14 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{:else if token.type === 'blockquote'}
|
|
{:else if token.type === 'blockquote'}
|
|
- <blockquote>
|
|
|
|
|
|
+ <blockquote dir="auto">
|
|
<svelte:self id={`${id}-${tokenIdx}`} tokens={token.tokens} {onTaskClick} {onSourceClick} />
|
|
<svelte:self id={`${id}-${tokenIdx}`} tokens={token.tokens} {onTaskClick} {onSourceClick} />
|
|
</blockquote>
|
|
</blockquote>
|
|
{:else if token.type === 'list'}
|
|
{:else if token.type === 'list'}
|
|
{#if token.ordered}
|
|
{#if token.ordered}
|
|
<ol start={token.start || 1}>
|
|
<ol start={token.start || 1}>
|
|
{#each token.items as item, itemIdx}
|
|
{#each token.items as item, itemIdx}
|
|
- <li>
|
|
|
|
|
|
+ <li dir="auto">
|
|
{#if item?.task}
|
|
{#if item?.task}
|
|
<input
|
|
<input
|
|
class=" translate-y-[1px] -translate-x-1"
|
|
class=" translate-y-[1px] -translate-x-1"
|
|
@@ -208,7 +208,7 @@
|
|
{:else}
|
|
{:else}
|
|
<ul>
|
|
<ul>
|
|
{#each token.items as item, itemIdx}
|
|
{#each token.items as item, itemIdx}
|
|
- <li>
|
|
|
|
|
|
+ <li dir="auto">
|
|
{#if item?.task}
|
|
{#if item?.task}
|
|
<input
|
|
<input
|
|
class=" translate-y-[1px] -translate-x-1"
|
|
class=" translate-y-[1px] -translate-x-1"
|
|
@@ -268,7 +268,7 @@
|
|
onload="this.style.height=(this.contentWindow.document.body.scrollHeight+20)+'px';"
|
|
onload="this.style.height=(this.contentWindow.document.body.scrollHeight+20)+'px';"
|
|
></iframe>
|
|
></iframe>
|
|
{:else if token.type === 'paragraph'}
|
|
{:else if token.type === 'paragraph'}
|
|
- <p>
|
|
|
|
|
|
+ <p dir="auto">
|
|
<MarkdownInlineTokens
|
|
<MarkdownInlineTokens
|
|
id={`${id}-${tokenIdx}-p`}
|
|
id={`${id}-${tokenIdx}-p`}
|
|
tokens={token.tokens ?? []}
|
|
tokens={token.tokens ?? []}
|
|
@@ -277,7 +277,7 @@
|
|
</p>
|
|
</p>
|
|
{:else if token.type === 'text'}
|
|
{:else if token.type === 'text'}
|
|
{#if top}
|
|
{#if top}
|
|
- <p>
|
|
|
|
|
|
+ <p dir="auto">
|
|
{#if token.tokens}
|
|
{#if token.tokens}
|
|
<MarkdownInlineTokens id={`${id}-${tokenIdx}-t`} tokens={token.tokens} {onSourceClick} />
|
|
<MarkdownInlineTokens id={`${id}-${tokenIdx}-t`} tokens={token.tokens} {onSourceClick} />
|
|
{:else}
|
|
{:else}
|