mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-23 09:54:28 -06:00
Set indent style to 4 spaces
This commit is contained in:
parent
8a44ba70fb
commit
de26368ad1
6
.editorconfig
Normal file
6
.editorconfig
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[*]
|
||||||
|
charset=utf-8
|
||||||
|
end_of_line=lf
|
||||||
|
insert_final_newline=true
|
||||||
|
indent_style=space
|
||||||
|
indent_size=4
|
@ -1,9 +1,5 @@
|
|||||||
{
|
{
|
||||||
"rules": {
|
"rules": {
|
||||||
"indent": [
|
|
||||||
2,
|
|
||||||
"tab"
|
|
||||||
],
|
|
||||||
"strict": 0,
|
"strict": 0,
|
||||||
"no-console": 0,
|
"no-console": 0,
|
||||||
"quotes": [
|
"quotes": [
|
||||||
@ -17,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"node":true
|
"node": true
|
||||||
},
|
},
|
||||||
"extends": "eslint:recommended"
|
"extends": "eslint:recommended"
|
||||||
}
|
}
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,8 +1,7 @@
|
|||||||
localtesting/
|
# NPM files
|
||||||
node_modules/
|
node_modules/
|
||||||
bower_components/
|
|
||||||
|
|
||||||
#For IDE
|
# IDE files
|
||||||
*.iml
|
*.iml
|
||||||
*.ipr
|
*.ipr
|
||||||
*.iws
|
*.iws
|
||||||
|
@ -465,7 +465,7 @@ span.CodeMirror-selectedtext { background: none; }
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-decoration: none!important;
|
text-decoration: none !important;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -600,8 +600,8 @@ span.CodeMirror-selectedtext { background: none; }
|
|||||||
display: block
|
display: block
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor-preview>p,
|
.editor-preview > p,
|
||||||
.editor-preview-side>p {
|
.editor-preview-side > p {
|
||||||
margin-top: 0
|
margin-top: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -675,6 +675,7 @@ span.CodeMirror-selectedtext { background: none; }
|
|||||||
.CodeMirror .CodeMirror-placeholder {
|
.CodeMirror .CodeMirror-placeholder {
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word) {
|
.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word) {
|
||||||
background: rgba(255, 0, 0, .15);
|
background: rgba(255, 0, 0, .15);
|
||||||
}
|
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
14
gulpfile.js
14
gulpfile.js
@ -21,7 +21,7 @@ var banner = ["/**",
|
|||||||
" */",
|
" */",
|
||||||
""].join("\n");
|
""].join("\n");
|
||||||
|
|
||||||
gulp.task("lint", function() {
|
gulp.task("lint", function () {
|
||||||
gulp.src("./src/js/**/*.js")
|
gulp.src("./src/js/**/*.js")
|
||||||
.pipe(debug())
|
.pipe(debug())
|
||||||
.pipe(eslint())
|
.pipe(eslint())
|
||||||
@ -34,23 +34,23 @@ function taskBrowserify(opts) {
|
|||||||
.bundle();
|
.bundle();
|
||||||
}
|
}
|
||||||
|
|
||||||
gulp.task("browserify:debug", ["lint"], function() {
|
gulp.task("browserify:debug", ["lint"], function () {
|
||||||
return taskBrowserify({debug:true, standalone:"SimpleMDE"})
|
return taskBrowserify({debug: true, standalone: "SimpleMDE"})
|
||||||
.pipe(source("simplemde.debug.js"))
|
.pipe(source("simplemde.debug.js"))
|
||||||
.pipe(buffer())
|
.pipe(buffer())
|
||||||
.pipe(header(banner, {pkg: pkg}))
|
.pipe(header(banner, {pkg: pkg}))
|
||||||
.pipe(gulp.dest("./debug/"));
|
.pipe(gulp.dest("./debug/"));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("browserify", ["lint"], function() {
|
gulp.task("browserify", ["lint"], function () {
|
||||||
return taskBrowserify({standalone:"SimpleMDE"})
|
return taskBrowserify({standalone: "SimpleMDE"})
|
||||||
.pipe(source("simplemde.js"))
|
.pipe(source("simplemde.js"))
|
||||||
.pipe(buffer())
|
.pipe(buffer())
|
||||||
.pipe(header(banner, {pkg: pkg}))
|
.pipe(header(banner, {pkg: pkg}))
|
||||||
.pipe(gulp.dest("./debug/"));
|
.pipe(gulp.dest("./debug/"));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("scripts", ["browserify:debug", "browserify", "lint"], function() {
|
gulp.task("scripts", ["browserify:debug", "browserify", "lint"], function () {
|
||||||
var js_files = ["./debug/simplemde.js"];
|
var js_files = ["./debug/simplemde.js"];
|
||||||
|
|
||||||
return gulp.src(js_files)
|
return gulp.src(js_files)
|
||||||
@ -61,7 +61,7 @@ gulp.task("scripts", ["browserify:debug", "browserify", "lint"], function() {
|
|||||||
.pipe(gulp.dest("./dist/"));
|
.pipe(gulp.dest("./dist/"));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("styles", function() {
|
gulp.task("styles", function () {
|
||||||
var css_files = [
|
var css_files = [
|
||||||
"./node_modules/codemirror/lib/codemirror.css",
|
"./node_modules/codemirror/lib/codemirror.css",
|
||||||
"./src/css/*.css",
|
"./src/css/*.css",
|
||||||
|
@ -112,7 +112,7 @@
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-decoration: none!important;
|
text-decoration: none !important;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -247,8 +247,8 @@
|
|||||||
display: block
|
display: block
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor-preview>p,
|
.editor-preview > p,
|
||||||
.editor-preview-side>p {
|
.editor-preview-side > p {
|
||||||
margin-top: 0
|
margin-top: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user