Skip to content

Commit 3c2aa66

Browse files
committed
add comment
1 parent f21f422 commit 3c2aa66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/gitdiff/gitdiff.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ func DiffInlineWithHighlightCode(fileName, language, code string) DiffInline {
284284
}
285285

286286
// highlightCodeDiff is used to do diff with highlighted HTML code.
287+
// It totally depends on Chroma's valid HTML output and its structure, do not use these functions for other purposes.
287288
// The HTML tags will be replaced by Unicode placeholders: "<span>{TEXT}</span>" => "\uE000{TEXT}\uE001"
288289
// These Unicode placeholders are friendly to the diff.
289290
// Then after diff, the placeholders in diff result will be recovered to the HTML tags.

0 commit comments

Comments
 (0)