From 4df45d26db7f152215f0c2bcd0dedefd9bc176ea Mon Sep 17 00:00:00 2001 From: tjex Date: Fri, 5 Apr 2024 17:58:27 +1100 Subject: [PATCH] Revert "hard code insideInline boolean instead of inverting it" This reverts commit d363631d5a6b6cda6d54d4ccc99a5b133ad80c45. --- internal/adapter/lsp/document.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/adapter/lsp/document.go b/internal/adapter/lsp/document.go index e0df263..784c4f8 100644 --- a/internal/adapter/lsp/document.go +++ b/internal/adapter/lsp/document.go @@ -323,7 +323,7 @@ func (d *document) DocumentLinks() ([]documentLink, error) { // 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 { - insideInline = true + insideInline = !insideInline } }