File tree Expand file tree Collapse file tree 6 files changed +192
-184
lines changed
src/components/PreviewMarkdown Expand file tree Collapse file tree 6 files changed +192
-184
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1-
21.hljs {
32 .comment {
43 color : #6a737d ;
3231 }
3332 }
3433}
34+
35+ .hljs {
36+ .selector-tag {
37+ color : #22863a ;
38+ }
39+ .selector-class {
40+ color : #6f42c1 ;
41+ }
42+ .selector-pseudo {
43+ font-weight : bold ;
44+ }
45+ .attribute {
46+ color : #005cc5 ;
47+ }
48+ .number {
49+ color : #005cc5 ;
50+ }
51+ }
Original file line number Diff line number Diff line change 1818 }
1919 &-markdown {
2020 padding : 20px ;
21- @import " ./default.less" ;
22- @import " ./hljs.less" ;
23- @import " ./css.less" ;
21+ // @import "./default.less";
22+ // @import "./hljs.less";
23+ // @import "./css.less";
2424 }
2525 }
2626}
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ import hljs from 'highlight.js';
33import React from 'react' ;
44import ReactMarkdown , { MarkdownAbstractSyntaxTree } from 'react-markdown' ;
55import { IProps } from '../../common/props' ;
6+ import './hljs.less' ;
67import './index.less' ;
8+ import './markdown.less' ;
79
810hljs . configure ( {
911 classPrefix : '' , // don't append class prefix
You can’t perform that action at this time.
0 commit comments