Skip to content

Commit 4a4fdf2

Browse files
committed
Modify markdown styles.
1 parent 4f60823 commit 4a4fdf2

File tree

6 files changed

+192
-184
lines changed

6 files changed

+192
-184
lines changed

src/components/PreviewMarkdown/css.less

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/components/PreviewMarkdown/default.less

Lines changed: 0 additions & 162 deletions
This file was deleted.

src/components/PreviewMarkdown/hljs.less

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.hljs {
32
.comment {
43
color: #6a737d;
@@ -32,3 +31,21 @@
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+
}

src/components/PreviewMarkdown/index.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
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
}

src/components/PreviewMarkdown/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import hljs from 'highlight.js';
33
import React from 'react';
44
import ReactMarkdown, { MarkdownAbstractSyntaxTree } from 'react-markdown';
55
import { IProps } from '../../common/props';
6+
import './hljs.less';
67
import './index.less';
8+
import './markdown.less';
79

810
hljs.configure({
911
classPrefix: '', // don't append class prefix

0 commit comments

Comments
 (0)