Skip to content

Excessive spacing above tables in latest release (1.3.0) #158

@mik-rom

Description

@mik-rom

Bug Description

If I downgrade to 1.2.0 I do not have this issue, no code changes made. I have tested with markdown from both gemini 2.5 pro and claude 4 sonnet, both give the same result.

Image

Steps to Reproduce

  1. Install version 1.3.0 and import streamdown, this is what I use:
import { Streamdown } from "streamdown"
<Streamdown
        remarkPlugins={[
          [
            remarkMath,
            {
              singleDollarTextMath: true,
            },
          ],
        ]}
  >
        {content || ""}
 </Streamdown>
  1. Pass in this example markdown to the component:
When choosing between macOS and Windows, the decision often comes down to individual needs and preferences. Both operating systems have their own set of strengths and weaknesses.

| Feature | Mac (macOS) | Windows |
|---|---|---|
| **Price** | Generally more expensive, as it's tied to Apple's premium hardware. | A wide range of prices, from budget-friendly to high-end, across various manufacturers. |
| **Hardware Options** | Limited to Apple's own line of computers, known for high-quality materials and durability. | Extensive variety of hardware from numerous manufacturers, offering more customization and component upgrade options. |
| **User Interface** | Known for its simple, clean, and intuitive design. | More diverse and customizable, which can sometimes be more complex for beginners. |
| **Software Compatibility** | Strong in creative fields like graphic design and video editing, though some specialized business applications may be unavailable. | Extensive software compatibility, including a vast library of games and business applications. |
| **Security** | Generally considered less vulnerable to viruses and malware due to its sandboxed environment and tighter security controls. | More frequently targeted by malware and viruses due to its larger user base, making robust antivirus software more essential. |
| **Gaming**| Limited gaming options, although the selection is growing. | The preferred platform for serious gamers due to extensive hardware customization and a much larger library of available games. |
| **Ecosystem Integration** | Seamless integration with other Apple products like the iPhone and iPad, allowing for easy data sharing. | Integration with other devices is possible but may not be as smooth and seamless as the Apple ecosystem. |
| **Upgradability & Repairs**| Repairs can be expensive and complex, with many components being difficult or impossible to upgrade by the user. | PCs are generally easier and cheaper to repair and upgrade, with a wide availability of components. |

Expected Behavior

There should be no excessive padding/spacing above the table. It should look the same as in version 1.2.0.

Actual Behavior

There is excessive spacing above the table.

Code Sample

See steps to reproduce

Streamdown Version

1.3.0

React Version

19.1.0

Node.js Version

No response

Browser(s)

Firefox, Chrome

Operating System

Linux

Additional Context

No response

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