diff --git a/assets/scripts/editor.js b/assets/scripts/editor.js
index 7626509..894a491 100644
--- a/assets/scripts/editor.js
+++ b/assets/scripts/editor.js
@@ -22,9 +22,9 @@ let app = new Vue({
}
],
sizeOption: [
+ { label: '13px', value: '13px', desc: '稍小' },
{ label: '14px', value: '14px', desc: '推荐' },
- { label: '15px', value: '15px', desc: '正常' },
- { label: '16px', value: '16px', desc: '稍大' },
+ { label: '15px', value: '15px', desc: '稍大' },
],
colorOption: [
{ label: '橘红', value: 'rgba(255, 95, 46, 0.9)', hex: '#FF5F2E' },
@@ -35,7 +35,7 @@ let app = new Vue({
};
d.currentEditorTheme = d.editorThemes[0].value;
d.currentFont = d.builtinFonts[0].value;
- d.currentSize = d.sizeOption[0].value;
+ d.currentSize = d.sizeOption[1].value;
d.currentColor = d.colorOption[1].value;
return d;
},
diff --git a/assets/scripts/renderers/wx-renderer.js b/assets/scripts/renderers/wx-renderer.js
index 2d9234f..df76110 100644
--- a/assets/scripts/renderers/wx-renderer.js
+++ b/assets/scripts/renderers/wx-renderer.js
@@ -49,7 +49,7 @@ let WxRenderer = function (opts) {
for (const key in dict) {
arr.push(key + ':' + dict[key])
}
- return `style="${ arr.join(';') + (addition || '') }"`
+ return `style="${arr.join(';') + (addition || '')}"`
};
let addFootnote = function (title, link) {
@@ -61,11 +61,11 @@ let WxRenderer = function (opts) {
this.buildFootnotes = function () {
let footnoteArray = footnotes.map(function (x) {
if (x[1] === x[2]) {
- return `[${ x[0] }]
: ${ x[1] }
`
+ return `[${x[0]}]
: ${x[1]}
`
}
- return `[${ x[0] }]
${ x[1] }: ${ x[2] }
`
+ return `[${x[0]}]
${x[1]}: ${x[2]}
`
});
- return `
${ footnoteArray.join('\n') }
` + return `${footnoteArray.join('\n')}
` }; this.buildAddition = function () { @@ -103,21 +103,21 @@ let WxRenderer = function (opts) { renderer.heading = function (text, level) { switch (level) { case 1: - return `${ text }
` + return `${text}
` }; renderer.blockquote = function (text) { - text = text.replace(/`); - return `
${ text }` + text = text.replace(/
`); + return `
${text}` }; renderer.code = function (text, infoString) { text = text.replace(/${ (line || '
${(line || '
')}
`);
numbers.push('')
}
let lang = infoString || '';
return `` + + `
` + codeLines.join('') + `
${ text }
`
+ return `${text}
`
};
renderer.listitem = function (text) {
- return `<%s/>${ text }`;
+ return `<%s/>${text}`;
};
renderer.list = function (text, ordered, start) {
text = text.replace(/<\/*p.*?>/g, '');
let segments = text.split(`<%s/>`);
if (!ordered) {
text = segments.join('•');
- return `${ text }
`; + return `${text}
`; } text = segments[0]; for (let i = 1; i < segments.length; i++) { text = text + i + '.' + segments[i]; } - return `${ text }
`; + return `${text}
`; }; renderer.image = function (href, title, text) { let subText = ''; if (text) { - subText = `${ text }
` + return `${text}
` }; - renderer.table = function (header, body) { - return `