We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 25f60c3 + 681a581 commit 05fc72aCopy full SHA for 05fc72a
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