Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

399 B
Raw Blame
import type { EditorThemeClasses } from 'lexical'

export const markdownEditorTheme: EditorThemeClasses = {
  code: 'block whitespace-pre-wrap rounded-md bg-surface-200 px-3 py-2 font-mono text-xs before:content-none after:content-none',
  list: {
    listitem: 'before:top-1/2 before:-translate-y-1/2 [ol>&]:before:content-[counter(item)]',
  },
  text: {
    strikethrough: 'line-through',
  },
}