Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
streamdown@2.1.1
Patch Changes
d5fe6d6: fix: properly handle HTML void elements in parse-blocks
6bb03ca: fix: escape HTML when rehype-raw is omitted (When rehype raw is removed as a plugin html is stripped instead of being escaped and displayed as text #330)
a12de57: Custom tags in components
aabb9ab: Fix $$ inside code blocks being treated as math delimiters
Code blocks can contain
$$as shell syntax (e.g.,pstree -p $$for current process ID). The math block merging logic was incorrectly counting$$inside code blocks, causing subsequent content to be merged as if it were part of a math block.Added tracking of previous token type to skip math merging when the previous block was a code block.
9f72224: Fix footnote detection incorrectly matching regex character classes
The footnote reference and definition patterns were too permissive, using
[^\]\s]which matches any character except]and whitespace. This caused regex negated character classes like[^\s...]in code blocks to be incorrectly detected as footnotes, resulting in the entire document being returned as a single block.Updated the patterns to only match valid footnote identifiers (alphanumeric characters, underscores, and hyphens) using
[\w-]instead.fd5533c: fix: Tables cause vertical scroll trap
e633ff7: Strip trailing newlines in code blocks
@streamdown/code@1.0.2
Patch Changes