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))
|
||||
</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>
|
||||
Reference in new issue
Block a user