From 9161a5be4ae003c0f8344f834ba92801e21d94b1 Mon Sep 17 00:00:00 2001 From: tjex Date: Fri, 5 Apr 2024 18:00:24 +1100 Subject: [PATCH] remove my comment, code is clear enough --- internal/adapter/lsp/document.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/adapter/lsp/document.go b/internal/adapter/lsp/document.go index 784c4f8..6cf6638 100644 --- a/internal/adapter/lsp/document.go +++ b/internal/adapter/lsp/document.go @@ -320,9 +320,7 @@ func (d *document) DocumentLinks() ([]documentLink, error) { hasTitle := match[4] != -1 appendLink(href, match[0], match[1], hasTitle, true) } - // if there are an odd number of back ticks, the state of insideInline - // for the following link will be true - if strings.Count(line, "`")%2 == 1 { + if strings.Count(line, "`")%2 == 1 { insideInline = !insideInline } }