Skip to content

Commit

Permalink
Remove forgotten debugging printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
janseeger committed Sep 3, 2024
1 parent d1d4a66 commit 459b516
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,12 @@ fun parseMarkdown(markdown: String, styles: MarkdownStyles = MarkdownStyles()):
.fastForEach { processNode(it, markdown, styles, tempNodesToRemoveAfter::add) }
}

println(tempString)
tempNodesToRemoveAfter.reversed().fastForEach {
tempString = try {
tempString.removeRange(it.startOffset, it.endOffset)
} catch (e: StringIndexOutOfBoundsException) {
} catch (_: StringIndexOutOfBoundsException) {
AnnotatedString("")
}
println(" ".repeat(it.startOffset) + "^".repeat(it.endOffset - it.startOffset))
println(tempString)
}

return tempString
Expand Down

0 comments on commit 459b516

Please sign in to comment.