We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 422498e commit 681a581Copy full SHA for 681a581
src/block.tsx
@@ -91,12 +91,15 @@ export const Block: React.FC<Block> = props => {
91
case "bulleted_list":
92
case "numbered_list":
93
const isTopLevel = block.value.type !== parentBlock.value.type;
94
-
+ const itemPosition =
95
+ 1 + (parentBlock.value.content?.indexOf(block.value.id) || 0);
96
const wrapList = (content: React.ReactNode) =>
97
blockValue.type === "bulleted_list" ? (
98
<ul className="notion-list notion-list-disc">{content}</ul>
99
) : (
- <ol className="notion-list notion-list-numbered">{content}</ol>
100
+ <ol start={itemPosition} className="notion-list notion-list-numbered">
101
+ {content}
102
+ </ol>
103
);
104
105
let output: JSX.Element | null = null;
0 commit comments