Skip to content

Commit

Permalink
fix($default-theme): code renders language css as c (close: #527)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed May 29, 2018
1 parent 9627139 commit 777c4f1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/default-theme/styles/code.styl
Original file line number Diff line number Diff line change
Expand Up @@ -94,34 +94,34 @@ div[class*="language-"]


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

div[class*="language-javascript"]
div[class~="language-javascript"]
&:before
content "js"

div[class*="language-typescript"]
div[class~="language-typescript"]
&:before
content "ts"

div[class*="language-markup"]
div[class~="language-markup"]
&:before
content "html"

div[class*="language-markdown"]
div[class~="language-markdown"]
&:before
content "md"

div[class*="language-json"]:before
div[class~="language-json"]:before
content "json"

div[class*="language-ruby"]:before
div[class~="language-ruby"]:before
content "rb"

div[class*="language-python"]:before
div[class~="language-python"]:before
content "py"

div[class*="language-bash"]:before
div[class~="language-bash"]:before
content "sh"

0 comments on commit 777c4f1

Please sign in to comment.