Skip to content

Commit 3881b92

Browse files
committed
Much more conservative highlighting for 1.12
Following a few vigorous complaints about the highlighting scheme introduced by JuliaSyntaxHighlighting, I've pared back the default behaviour to something much more conservative.
1 parent e26756d commit 3881b92

File tree

6 files changed

+4
-3
lines changed

6 files changed

+4
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
778d62517cab8b4a95920337631f9439
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
95db08cd6775920271e347bae3ee4a68ef532ec6dceb834a63bc8f918b785c042c2bed9babf9ca76ff610ee2782130a69b4ecf158e4beae6361115cdef57dc51

deps/checksums/JuliaSyntaxHighlighting-b7a1c636d3e9690bfbbfe917bb20f6cb112a3e6f.tar.gz/md5

Lines changed: 0 additions & 1 deletion
This file was deleted.

deps/checksums/JuliaSyntaxHighlighting-b7a1c636d3e9690bfbbfe917bb20f6cb112a3e6f.tar.gz/sha512

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
JULIASYNTAXHIGHLIGHTING_BRANCH = main
2-
JULIASYNTAXHIGHLIGHTING_SHA1 = b7a1c636d3e9690bfbbfe917bb20f6cb112a3e6f
2+
JULIASYNTAXHIGHLIGHTING_SHA1 = b666d3c98cca30d20d1e6f98c0e12c9350ffbc4c
33
JULIASYNTAXHIGHLIGHTING_GIT_URL := https://github.com/julialang/JuliaSyntaxHighlighting.jl.git
44
JULIASYNTAXHIGHLIGHTING_TAR_URL = https://api.github.com/repos/julialang/JuliaSyntaxHighlighting.jl/tarball/$1

stdlib/Markdown/src/render/terminal/render.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function term(io::IO, md::Code, columns)
120120
highlight(md.code)
121121
elseif md.language == "julia-repl" || Base.startswith(md.language, "jldoctest")
122122
hl = AnnotatedString(md.code)
123+
StyledStrings.face!(hl, :markdown_code)
123124
for (; match) in eachmatch(r"(?:^|\n)julia>", hl)
124125
StyledStrings.face!(match, :markdown_julia_prompt)
125126
afterprompt = match.offset + ncodeunits(match) + 1

0 commit comments

Comments
 (0)