Skip to content

Commit f2e7c57

Browse files
CopilotGodzilla675
andcommitted
fix: address code review feedback - fix spelling, avoid recursive link parsing
Co-authored-by: Godzilla675 <131464726+Godzilla675@users.noreply.github.com>
1 parent a971e3a commit f2e7c57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/com/dark/tool_neuron/ui/components/MarkdownText.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fun MarkdownText(text: String, modifier: Modifier = Modifier) {
9696
}
9797

9898
/**
99-
* Streaming-optimised markdown renderer.
99+
* Streaming-optimized markdown renderer.
100100
* Re-parses on every text change (bypasses the completed-message cache).
101101
* Used in [AssistantStreamingBubble] so the user sees formatted text while
102102
* tokens are still being generated.
@@ -522,7 +522,7 @@ internal fun buildInlineFormatted(text: String, colors: InlineColors): Annotated
522522
if (closeParen != -1) {
523523
val linkText = text.substring(i + 1, closeBracket)
524524
withStyle(SpanStyle(color = colors.mathColor, textDecoration = TextDecoration.Underline)) {
525-
append(buildInlineFormatted(linkText, colors))
525+
append(linkText)
526526
}
527527
i = closeParen + 1
528528
} else { append(chars[i]); i++ }

0 commit comments

Comments
 (0)