Skip to content

Commit fa8b055

Browse files
lbertgeulivz
authored andcommittedAug 8, 2018
chore: generalized support for code highlighting (#696)
1 parent 5bb5ba8 commit fa8b055

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

Diff for: ‎lib/default-theme/styles/code.styl

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ div[class*="language-"]
9595
background-color $codeBgColor
9696

9797

98-
for lang in js ts html md vue css sass scss less stylus go java c sh yaml py
98+
for lang in $codeLang
9999
div{'[class~="language-' + lang + '"]'}
100100
&:before
101101
content ('' + lang)

Diff for: ‎lib/default-theme/styles/config.styl

+1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ $MQMobileNarrow = 419px
1717

1818
// code
1919
$lineNumbersWrapperWidth = 3.5rem
20+
$codeLang = js ts html md vue css sass scss less stylus go java c sh yaml py
2021

2122
@import '~@temp/override.styl'

0 commit comments

Comments
 (0)
Please sign in to comment.