mirror of
https://dl.bcrjl.com/ghg/HaoOuBa/Joe.git
synced 2026-02-18 01:20:04 +08:00
更新
This commit is contained in:
2
typecho/write/css/joe.write.min.css
vendored
2
typecho/write/css/joe.write.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -161,9 +161,33 @@ body.fullscreen {
|
||||
border: 1px solid rgba(255, 255, 255, 0.25);
|
||||
margin: -1px;
|
||||
}
|
||||
.cmt-strong {
|
||||
color: #61afef;
|
||||
font-weight: 500;
|
||||
}
|
||||
.cm-nonmatchingBracket {
|
||||
color: #ff5627;
|
||||
}
|
||||
.cmt-emphasis {
|
||||
color: #b294bb;
|
||||
font-style: italic;
|
||||
font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
|
||||
}
|
||||
.cmt-deleted {
|
||||
color: #ed6a43;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
.cmt-heading {
|
||||
font-size: 18px;
|
||||
color: #61afef;
|
||||
font-weight: 700;
|
||||
}
|
||||
.cmt-link {
|
||||
color: #e26666;
|
||||
}
|
||||
.cmt-url {
|
||||
color: #5fa76f;
|
||||
}
|
||||
}
|
||||
}
|
||||
.cm-resize {
|
||||
@@ -283,16 +307,14 @@ body.fullscreen {
|
||||
position: relative;
|
||||
}
|
||||
h1 {
|
||||
padding: 0 15px;
|
||||
padding: 0 15px 0 20px;
|
||||
&::before {
|
||||
content: '';
|
||||
content: '¶';
|
||||
color: #409eff;
|
||||
position: absolute;
|
||||
top: 8.5px;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 7px;
|
||||
width: 7px;
|
||||
border-radius: 50%;
|
||||
background: #409eff;
|
||||
font-size: 22px;
|
||||
}
|
||||
}
|
||||
h2 {
|
||||
@@ -309,15 +331,16 @@ body.fullscreen {
|
||||
}
|
||||
}
|
||||
h3 {
|
||||
padding: 0 15px 0 20px;
|
||||
padding: 0 15px;
|
||||
&::before {
|
||||
content: '#';
|
||||
color: #409eff;
|
||||
font-weight: 700;
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
line-height: 24px;
|
||||
width: 4px;
|
||||
background: #409eff;
|
||||
border-radius: 0 4px 4px 0;
|
||||
}
|
||||
}
|
||||
h4 {
|
||||
@@ -404,10 +427,11 @@ body.fullscreen {
|
||||
display: inline-block;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
background: #fdf6ec;
|
||||
background: #ecf5ff;
|
||||
color: #409eff;
|
||||
padding: 0 8px;
|
||||
color: #e6a23c;
|
||||
vertical-align: top;
|
||||
word-break: break-all;
|
||||
}
|
||||
ol,
|
||||
ul {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -5,6 +5,7 @@ import { closeBrackets, closeBracketsKeymap } from '@codemirror/closebrackets';
|
||||
import { defaultKeymap, defaultTabBinding } from '@codemirror/commands';
|
||||
import { history, historyKeymap } from '@codemirror/history';
|
||||
import { classHighlightStyle } from '@codemirror/highlight';
|
||||
import { markdown, markdownLanguage } from '@codemirror/lang-markdown';
|
||||
import tools from './_tools';
|
||||
import JoeAction from './_actions';
|
||||
import createPreviewHtml from './_create';
|
||||
@@ -49,6 +50,9 @@ class Joe extends JoeAction {
|
||||
doc: $('#text').val(),
|
||||
extensions: [
|
||||
...this.plugins,
|
||||
markdown({
|
||||
base: markdownLanguage,
|
||||
}),
|
||||
keymap.of([defaultTabBinding, ...defaultKeymap, ...historyKeymap, ...closeBracketsKeymap]),
|
||||
EditorView.updateListener.of(update => {
|
||||
if (!update.docChanged) return;
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
{
|
||||
"scripts": {
|
||||
"serve": "rollup -c -w"
|
||||
},
|
||||
"dependencies": {
|
||||
"@codemirror/closebrackets": "^0.18.0",
|
||||
"@codemirror/commands": "^0.18.1",
|
||||
"@codemirror/highlight": "^0.18.3",
|
||||
"@codemirror/history": "^0.18.1",
|
||||
"@codemirror/matchbrackets": "^0.18.0",
|
||||
"@codemirror/state": "^0.18.6",
|
||||
"@codemirror/view": "^0.18.9",
|
||||
"@rollup/plugin-node-resolve": "^11.2.1",
|
||||
"rollup-plugin-uglify": "^6.0.4"
|
||||
}
|
||||
"scripts": {
|
||||
"serve": "rollup -c -w"
|
||||
},
|
||||
"dependencies": {
|
||||
"@codemirror/closebrackets": "^0.18.0",
|
||||
"@codemirror/commands": "^0.18.1",
|
||||
"@codemirror/highlight": "^0.18.3",
|
||||
"@codemirror/history": "^0.18.1",
|
||||
"@codemirror/lang-markdown": "^0.18.1",
|
||||
"@codemirror/language-data": "^0.18.0",
|
||||
"@codemirror/matchbrackets": "^0.18.0",
|
||||
"@codemirror/state": "^0.18.7",
|
||||
"@codemirror/view": "^0.18.11",
|
||||
"@rollup/plugin-node-resolve": "^11.2.1",
|
||||
"rollup-plugin-uglify": "^6.0.4"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user