From 366ebb5b9be3271ac9d5612123c682461e165008 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Fri, 3 Mar 2023 21:25:06 -0800 Subject: [PATCH] [ci-base] cleanup last --- d2renderers/d2svg/d2svg.go | 3 +-- .../TestCLI_E2E/internal_linked_pdf.exp.pdf | Bin 81564 -> 81564 bytes 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/d2renderers/d2svg/d2svg.go b/d2renderers/d2svg/d2svg.go index 99828752f5..afe1acd8d9 100644 --- a/d2renderers/d2svg/d2svg.go +++ b/d2renderers/d2svg/d2svg.go @@ -1197,7 +1197,7 @@ func drawShape(writer io.Writer, targetShape d2target.Shape, sketchRunner *d2ske if targetShape.Type == d2target.ShapeCode { lexer := lexers.Get(targetShape.Language) if lexer == nil { - lexer = lexers.Plaintext + lexer = lexers.Fallback } for _, isLight := range []bool{true, false} { theme := "github" @@ -1808,7 +1808,6 @@ func themeCSS(themeID int64, darkThemeID *int64) (stylesheet string, err error) if err != nil { return "", err } - out += fmt.Sprintf("@media screen and (prefers-color-scheme:dark){%s}", darkOut) } diff --git a/e2etests-cli/testdata/TestCLI_E2E/internal_linked_pdf.exp.pdf b/e2etests-cli/testdata/TestCLI_E2E/internal_linked_pdf.exp.pdf index d1e304c142d79122250e00cf1bd3aed3160e4ed4..28e876399a5a4a6ab3e2aedd0056d7c34d7f630c 100644 GIT binary patch delta 437 zcmbR9mu1dhmJQ2UCtC?=O}@aIJo%K6&}0`jrOp3@k{CCiU>9bZTp~7Max$0dWKHoe zlk2!eHXBL^vrqmfXft^^tLEesp|r`yY=V>T2q|q&V*_eQ5D{UTe4DdlGK;wCyaObjs9nV4B( zs53J+#SpVJF+vwJF*7iOh}9!3HZeCbMptNRWQ<|4shJT}GeWPanWYJaUP}WDbTKnS Nb5uK~Kd@!o0{~84YrFse