siakad-itm/resources/js/lib/rich-text-content.ts

12 lines
599 B
TypeScript

export const richTextContentClass = [
'[&_h2]:mt-4 [&_h2]:mb-2 [&_h2]:text-xl [&_h2]:font-semibold',
'[&_h3]:mt-3 [&_h3]:mb-2 [&_h3]:text-lg [&_h3]:font-semibold',
'[&_p]:mb-2 [&_p:last-child]:mb-0',
'[&_ul]:mb-2 [&_ul]:list-disc [&_ul]:pl-6',
'[&_ol]:mb-2 [&_ol]:list-decimal [&_ol]:pl-6',
'[&_li]:mb-1',
'[&_img]:my-4 [&_img]:h-auto [&_img]:max-w-full [&_img]:rounded-md',
'[&_a]:text-primary [&_a]:underline',
'[&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground [&_blockquote]:italic',
].join(' ');