Compare commits

...

2 Commits

Author SHA1 Message Date
openhands
fd6820fc8f Fix markdown ordered lists counter reset 2024-11-14 01:04:48 +00:00
openhands
8fd7fc1bb0 Fix markdown ordered lists counter reset 2024-11-14 01:01:54 +00:00

View File

@@ -17,6 +17,11 @@ 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>
);
}