Skip to content

Commit

Permalink
Fix markdown ordered lists counter reset
Browse files Browse the repository at this point in the history
  • Loading branch information
openhands-agent committed Nov 14, 2024
1 parent 8fd7fc1 commit fd6820f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/components/markdown/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ export function ol({
React.HTMLAttributes<HTMLElement> &
ExtraProps) {
return (
<ol className="list-decimal ml-5 pl-2 whitespace-normal" style={{ counterReset: "list-item" }}>{children}</ol>
<ol
className="list-decimal ml-5 pl-2 whitespace-normal"
style={{ counterReset: "list-item" }}
>
{children}
</ol>
);
}

0 comments on commit fd6820f

Please sign in to comment.