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 } }