impr: support RTL posts automatically (#606)

This commit is contained in:
Xylight authored and GitHub committed 2025-07-11 01:15:20 +00:00
1 parent 21a250c9a1
commit d48cdffcee
1 file changed
+4 -5
+4 -5
View File
@@ -148,10 +148,9 @@
let tokens = $derived.by(() => marked.lexer(source))
</script>
<div
class="{noStyle
? ''
: 'break-words flex flex-col gap-2 leading-normal'} {clazz}"
<article
dir="auto"
class={[!noStyle && 'break-words space-y-2 leading-normal', clazz]}
{style}
>
<SvelteMarkdown
@@ -160,4 +159,4 @@
{options}
isInline={inline || undefined}
/>
</div>
</article>