File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
public/js/lib/editor/markdown-lint Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
import markdownlint from 'markdownlint'
2
2
3
- // load lint plugin explicitly
3
+ // load CM lint plugin explicitly
4
4
import 'script-loader!@hackmd/codemirror/addon/lint/lint'
5
5
import './lint.css'
6
6
@@ -21,7 +21,7 @@ import './lint.css'
21
21
}
22
22
23
23
return {
24
- message : error . ruleDescription ,
24
+ messageHTML : ` ${ error . ruleNames . join ( '/' ) } : ${ error . ruleDescription } ` ,
25
25
severity : 'error' ,
26
26
from : CodeMirror . Pos ( lineNumber , start ) ,
27
27
to : CodeMirror . Pos ( lineNumber , end )
Original file line number Diff line number Diff line change 4
4
}
5
5
6
6
.CodeMirror-lint-tooltip {
7
- background-color : # ffd ;
8
- border : 1px solid black ;
9
- border-radius : 4px 4 px 4 px 4 px ;
10
- color : black ;
11
- font-family : monospace;
7
+ background-color : # 333333 ;
8
+ border : 1px solid # eeeeee ;
9
+ border-radius : 4px ;
10
+ color : white ;
11
+ font-family : "Source Code Pro" , Consolas , monaco , monospace;
12
12
font-size : 10pt ;
13
13
overflow : hidden;
14
14
padding : 2px 5px ;
32
32
33
33
.CodeMirror-lint-mark-error {
34
34
background-image : url (/images/lint/mark-error.png);
35
- ;
36
35
}
37
36
38
37
.CodeMirror-lint-mark-warning {
52
51
}
53
52
54
53
.CodeMirror-lint-message-error , .CodeMirror-lint-message-warning {
55
- padding-left : 18 px ;
54
+ padding-left : 20 px ;
56
55
background-position : top left;
57
56
background-repeat : no-repeat;
57
+ background-position-y : 2px ;
58
58
}
59
59
60
60
.CodeMirror-lint-marker-error , .CodeMirror-lint-message-error {
You can’t perform that action at this time.
0 commit comments