Fix markdown ordered lists counter reset

This commit is contained in:
openhands
2024-11-14 01:01:54 +00:00
parent a93f1402de
commit 8fd7fc1bb0

View File

@@ -17,6 +17,6 @@ export function ol({
React.HTMLAttributes<HTMLElement> &
ExtraProps) {
return (
<ol className="list-decimal ml-5 pl-2 whitespace-normal">{children}</ol>
<ol className="list-decimal ml-5 pl-2 whitespace-normal" style={{ counterReset: "list-item" }}>{children}</ol>
);
}