From 777c4f1551dba530cb88f35371980409088f5c7b Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Wed, 30 May 2018 00:28:34 +0800 Subject: [PATCH] fix($default-theme): code renders language css as c (close: #527) --- lib/default-theme/styles/code.styl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/default-theme/styles/code.styl b/lib/default-theme/styles/code.styl index 71fe8770d8..fb5a8037f0 100644 --- a/lib/default-theme/styles/code.styl +++ b/lib/default-theme/styles/code.styl @@ -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"