Skip to content

Commit 69f4669

Browse files
author
streamdown-bot[bot]
committed
Version Packages
1 parent ecb929a commit 69f4669

File tree

5 files changed

+21
-24
lines changed

5 files changed

+21
-24
lines changed

.changeset/fix-word-internal-underscores.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.changeset/many-pandas-agree.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/tough-maps-share.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/streamdown/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# streamdown
22

3+
## 1.3.0
4+
5+
### Minor Changes
6+
7+
- d2edc90: feat: add custom Mermaid configuration support
8+
9+
### Patch Changes
10+
11+
- 266fa2b: Fix word-internal underscores being incorrectly treated as incomplete markdown
12+
13+
Previously, underscores used as word separators (e.g., `hello_world`, `snake_case`) were incorrectly identified as incomplete italic markdown, causing an extra underscore to be appended. This fix:
14+
15+
- Detects when underscores are between word characters and treats them as literals
16+
- Preserves the streaming markdown completion for genuine incomplete italics (e.g., `_italic text`)
17+
- Correctly handles trailing newlines when completing italic formatting
18+
19+
Fixes the issue where `hello_world` would become `hello_world_` when `parseIncompleteMarkdown` was enabled.
20+
21+
- d583b1f: import `Lexer` only for possible tree-shaking
22+
323
## 1.2.0
424

525
### Minor Changes

packages/streamdown/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "streamdown",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"type": "module",
55
"main": "./dist/index.js",
66
"module": "./dist/index.js",

0 commit comments

Comments
 (0)