|
@@ -76,7 +76,7 @@
|
|
|
{#if token.type === 'hr'}
|
|
|
<hr class=" border-gray-100 dark:border-gray-850" />
|
|
|
{:else if token.type === 'heading'}
|
|
|
- <svelte:element this={headerComponent(token.depth)}>
|
|
|
+ <svelte:element this={headerComponent(token.depth)} dir="auto">
|
|
|
<MarkdownInlineTokens id={`${id}-${tokenIdx}-h`} tokens={token.tokens} {onSourceClick} />
|
|
|
</svelte:element>
|
|
|
{:else if token.type === 'code'}
|
|
@@ -176,7 +176,7 @@
|
|
|
{#if token.ordered}
|
|
|
<ol start={token.start || 1}>
|
|
|
{#each token.items as item, itemIdx}
|
|
|
- <li dir="auto">
|
|
|
+ <li dir="auto" class="text-start">
|
|
|
{#if item?.task}
|
|
|
<input
|
|
|
class=" translate-y-[1px] -translate-x-1"
|
|
@@ -208,7 +208,7 @@
|
|
|
{:else}
|
|
|
<ul>
|
|
|
{#each token.items as item, itemIdx}
|
|
|
- <li dir="auto">
|
|
|
+ <li dir="auto" class="text-start">
|
|
|
{#if item?.task}
|
|
|
<input
|
|
|
class=" translate-y-[1px] -translate-x-1"
|
|
@@ -239,7 +239,7 @@
|
|
|
</ul>
|
|
|
{/if}
|
|
|
{:else if token.type === 'details'}
|
|
|
- <Collapsible title={token.summary} attributes={token?.attributes} className="w-full space-y-1">
|
|
|
+ <Collapsible title={token.summary} attributes={token?.attributes} className="w-full space-y-1" dir="auto">
|
|
|
<div class=" mb-1.5" slot="content">
|
|
|
<svelte:self
|
|
|
id={`${id}-${tokenIdx}-d`}
|