Skip to content

Commit 0b164a0

Browse files
committed
Fix background image ref when urlpath is set
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
1 parent 5e608a9 commit 0b164a0

File tree

8 files changed

+6
-6
lines changed

8 files changed

+6
-6
lines changed

public/js/lib/editor/markdown-lint/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// load CM lint plugin explicitly
44
import '@hackmd/codemirror/addon/lint/lint'
5-
import './lint.css'
65

76
window.markdownit = require('markdown-it')
87
// eslint-disable-next-line

public/js/lib/editor/markdown-lint/lint.css renamed to public/markdown-lint/css/lint.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
}
3232

3333
.CodeMirror-lint-mark-error {
34-
background-image: url(/images/lint/mark-error.png);
34+
background-image: url(../images/mark-error.png);
3535
}
3636

3737
.CodeMirror-lint-mark-warning {
38-
background-image: url(/images/lint/mark-warning.png);
38+
background-image: url(../images/mark-warning.png);
3939
}
4040

4141
.CodeMirror-lint-marker-error, .CodeMirror-lint-marker-warning {
@@ -58,15 +58,15 @@
5858
}
5959

6060
.CodeMirror-lint-marker-error, .CodeMirror-lint-message-error {
61-
background-image: url(/images/lint/message-error.png);
61+
background-image: url(../images/message-error.png);
6262
}
6363

6464
.CodeMirror-lint-marker-warning, .CodeMirror-lint-message-warning {
65-
background-image: url(/images/lint/message-warning.png);
65+
background-image: url(../images/message-warning.png);
6666
}
6767

6868
.CodeMirror-lint-marker-multiple {
69-
background-image: url(/images/lint/mark-multiple.png);
69+
background-image: url(../images/mark-multiple.png);
7070
background-repeat: no-repeat;
7171
background-position: right bottom;
7272
width: 100%; height: 100%;

public/views/codimd/head.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@
2222
<link rel="stylesheet" href='<%- serverURL %>/build/fork-awesome/css/fork-awesome.min.css'>
2323
<%- include ../build/index-pack-header %>
2424
<% } %>
25+
<link rel="stylesheet" href='<%- serverURL %>/markdown-lint/css/lint.css'>

0 commit comments

Comments
 (0)