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)) 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>