impr: support RTL posts automatically (#606)
This commit is contained in:
1 parent
21a250c9a1
commit
d48cdffcee
1 file changed
+4
-5
@@ -148,10 +148,9 @@
|
|||||||
let tokens = $derived.by(() => marked.lexer(source))
|
let tokens = $derived.by(() => marked.lexer(source))
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<article
|
||||||
class="{noStyle
|
dir="auto"
|
||||||
? ''
|
class={[!noStyle && 'break-words space-y-2 leading-normal', clazz]}
|
||||||
: 'break-words flex flex-col gap-2 leading-normal'} {clazz}"
|
|
||||||
{style}
|
{style}
|
||||||
>
|
>
|
||||||
<SvelteMarkdown
|
<SvelteMarkdown
|
||||||
@@ -160,4 +159,4 @@
|
|||||||
{options}
|
{options}
|
||||||
isInline={inline || undefined}
|
isInline={inline || undefined}
|
||||||
/>
|
/>
|
||||||
</div>
|
</article>
|
||||||
Reference in new issue
Block a user