fix(editor): space paragraphs in the shared rich text editor
This commit is contained in:
parent
c323d0d853
commit
f1634fb335
1 changed files with 9 additions and 8 deletions
|
|
@ -34,22 +34,23 @@ const EDITOR_NODES = [
|
|||
|
||||
const EDITOR_THEME: EditorThemeClasses = {
|
||||
heading: {
|
||||
h2: "text-lg font-semibold",
|
||||
h3: "text-base font-semibold",
|
||||
h4: "text-sm font-semibold",
|
||||
h2: "mt-4 mb-2 text-lg font-semibold",
|
||||
h3: "mt-3 mb-2 text-base font-semibold",
|
||||
h4: "mt-2 mb-1 text-sm font-semibold",
|
||||
},
|
||||
hr: "my-3 border-border",
|
||||
hr: "my-4 border-border",
|
||||
link: "text-primary underline underline-offset-2",
|
||||
list: {
|
||||
checklist: "pl-6",
|
||||
listitem: "pl-1",
|
||||
listitem: "mb-1 pl-1",
|
||||
listitemChecked: "text-muted-foreground line-through",
|
||||
listitemUnchecked: "",
|
||||
nested: { list: "pl-6", listitem: "pl-1" },
|
||||
ol: "list-decimal pl-6",
|
||||
ul: "list-disc pl-6",
|
||||
ol: "mb-4 list-decimal pl-6",
|
||||
ul: "mb-4 list-disc pl-6",
|
||||
},
|
||||
quote: "border-l-2 border-border pl-3 italic text-muted-foreground",
|
||||
paragraph: "mb-4 last:mb-0",
|
||||
quote: "mb-4 border-l-2 border-border pl-3 italic text-muted-foreground",
|
||||
text: {
|
||||
bold: "font-semibold",
|
||||
code: "rounded-sm bg-muted px-1 font-mono text-xs",
|
||||
|
|
|
|||
Loading…
Reference in a new issue