You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-5Lines changed: 17 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,10 +129,13 @@ Converts an array of file objects into a Markdown string using the Bold Format.
129
129
130
130
A streaming parser that processes Markdown content chunk by chunk, emitting callbacks when file names or code blocks are detected. This is particularly useful for real-time code editing views where users can see LLMs edit specific files as they generate content.
-**onFileNameChange**: Called when a file header is detected outside a code fence.
185
+
-**onCodeLine**: Called for each line emitted from inside a code fence.
186
+
-**onNonCodeLine**: Called for each line outside code fences that is not a file header.
187
+
176
188
Currently, the streaming parser only supports the "Bold Format" (`**filename.js**`), but is designed to be extensible for supporting additional formats in the future.
0 commit comments