File tree Expand file tree Collapse file tree 6 files changed +7
-4
lines changed
JuliaSyntaxHighlighting-b666d3c98cca30d20d1e6f98c0e12c9350ffbc4c.tar.gz
JuliaSyntaxHighlighting-b7a1c636d3e9690bfbbfe917bb20f6cb112a3e6f.tar.gz
Markdown/src/render/terminal Expand file tree Collapse file tree 6 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1+ 778d62517cab8b4a95920337631f9439
Original file line number Diff line number Diff line change 1+ 95db08cd6775920271e347bae3ee4a68ef532ec6dceb834a63bc8f918b785c042c2bed9babf9ca76ff610ee2782130a69b4ecf158e4beae6361115cdef57dc51
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11JULIASYNTAXHIGHLIGHTING_BRANCH = main
2- JULIASYNTAXHIGHLIGHTING_SHA1 = b7a1c636d3e9690bfbbfe917bb20f6cb112a3e6f
2+ JULIASYNTAXHIGHLIGHTING_SHA1 = b666d3c98cca30d20d1e6f98c0e12c9350ffbc4c
33JULIASYNTAXHIGHLIGHTING_GIT_URL := https://github.com/julialang/JuliaSyntaxHighlighting.jl.git
44JULIASYNTAXHIGHLIGHTING_TAR_URL = https://api.github.com/repos/julialang/JuliaSyntaxHighlighting.jl/tarball/$1
Original file line number Diff line number Diff line change 117117
118118function 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
You can’t perform that action at this time.
0 commit comments