Skip to content

Commit 9a46bf5

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 9a46bf5

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,12 @@ end
117117

118118
function term(io::IO, md::Code, columns)
119119
code = if md.language == "julia"
120-
highlight(md.code)
120+
hl = AnnotatedString(md.code)
121+
StyledStrings.face!(hl, :markdown_code)
122+
highlight!(hl)
121123
elseif md.language == "julia-repl" || Base.startswith(md.language, "jldoctest")
122124
hl = AnnotatedString(md.code)
125+
StyledStrings.face!(hl, :markdown_code)
123126
for (; match) in eachmatch(r"(?:^|\n)julia>", hl)
124127
StyledStrings.face!(match, :markdown_julia_prompt)
125128
afterprompt = match.offset + ncodeunits(match) + 1

0 commit comments

Comments
 (0)