Skip to content

Streaming animation reveals multiple markdown sections concurrently instead of serializing section animation #482

Description

@ryanyue123

Bug Description

Streamed markdown can animate multiple sections at once.

For example, while a list is still animating in, the next paragraph or heading can already start animating too. The content order is correct, but the visual reveal feels wrong because multiple sections are “live” at the same time.

Image

Steps to Reproduce

  1. Stream structured markdown with multiple sections, for example:
  • a paragraph
  • a short intro line
  • a bullet list
  • a closing paragraph
  1. Watch the response while it is still streaming.
  2. Notice that the next paragraph or heading begins animating before the earlier list or section has visually finished.

Expected Behavior

The list finishes animating before the next paragraph

Actual Behavior

Image

Code Sample

Streamdown Version

2.5.0

React Version

19.2.2

Node.js Version

No response

Browser(s)

No response

Operating System

None

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions