From af5e67d3f2af5a6167d36a49cc37a0d77e488b63 Mon Sep 17 00:00:00 2001 From: azerr Date: Wed, 19 Jun 2024 14:23:05 +0200 Subject: [PATCH] fix: The plaintext rendering color on the completion document is too dark. Fixes #368 Signed-off-by: azerr --- .../documentation/SyntaxColorationCodeBlockRenderer.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/com/redhat/devtools/lsp4ij/features/documentation/SyntaxColorationCodeBlockRenderer.java b/src/main/java/com/redhat/devtools/lsp4ij/features/documentation/SyntaxColorationCodeBlockRenderer.java index 1f7e23221..d80a3ad89 100644 --- a/src/main/java/com/redhat/devtools/lsp4ij/features/documentation/SyntaxColorationCodeBlockRenderer.java +++ b/src/main/java/com/redhat/devtools/lsp4ij/features/documentation/SyntaxColorationCodeBlockRenderer.java @@ -180,9 +180,7 @@ private void render(ContentNode node, String language, NodeRendererContext conte // Case 2: Try to highlight code block with TextMate if (!(HAS_TEXTMATE_SUPPORT && TextMateHighlighterHelper.highlightWithTextMate(code, language , this.fileName, html))) { // Case 3 : no highlight - html.withAttr().tag("code"); html.text(node.getContentChars()); - html.tag("/code"); } } html.tag("/pre").closePre();