|
|
@ -43,8 +43,11 @@ const List: React.FC<Props> = ({ kind, indent, children }: Props) => {
|
|
|
|
return React.createElement(
|
|
|
|
return React.createElement(
|
|
|
|
getListContainer(),
|
|
|
|
getListContainer(),
|
|
|
|
{
|
|
|
|
{
|
|
|
|
className: cn(kind === ListNode_Kind.ORDERED ? "list-decimal" : kind === ListNode_Kind.UNORDERED ? "list-disc" : "list-none"),
|
|
|
|
className: cn(
|
|
|
|
style: { paddingLeft: `${(2 * indent + 6) * 4}px` },
|
|
|
|
"list-inside break-all",
|
|
|
|
|
|
|
|
kind === ListNode_Kind.ORDERED ? "list-decimal" : kind === ListNode_Kind.UNORDERED ? "list-disc" : "list-none",
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
style: { paddingLeft: `${indent * 6}px` },
|
|
|
|
...getAttributes(),
|
|
|
|
...getAttributes(),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
children.map((child, index) => {
|
|
|
|
children.map((child, index) => {
|
|
|
|