File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,13 @@ export default {
43
43
// computed properties
44
44
const className = computed (() => {
45
45
if (props .lang === ' txt' ) {
46
- return ' language-markup '
46
+ return ' language-text '
47
47
}
48
48
return ` language-${ lang .value } `
49
49
})
50
50
const highlightCode = computed (() => {
51
51
if (lang .value === ' txt' ) {
52
- return highlight (code .value , languages[ ' markup ' ] , ' markup ' )
52
+ return highlight (code .value , {} , ' txt ' )
53
53
}
54
54
return highlight (code .value , languages[lang .value ], lang .value )
55
55
})
@@ -149,6 +149,11 @@ div[class~='language-markdown']::before {
149
149
content : ' md' ;
150
150
}
151
151
152
+ div [class ~= ' language-txt' ]::before ,
153
+ div [class ~= ' language-text' ]::before {
154
+ content : ' txt' ;
155
+ }
156
+
152
157
div [class ~= ' language-json' ]::before {
153
158
content : ' json' ;
154
159
}
You can’t perform that action at this time.
0 commit comments