@seafile/sdoc-editor 0.1.147 → 0.1.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -131,7 +131,7 @@ export var loadFont = function loadFont() {
131
131
  };
132
132
  export var generatorFontFamily = function generatorFontFamily(fontName, fontWeight, leaf) {
133
133
  var isCodeBlock = leaf && Object.keys(leaf).includes('token');
134
- if (isCodeBlock) return {};
134
+ if (isCodeBlock) return '';
135
135
  var lang = context.getSetting('lang') || 'zh-cn';
136
136
  if (fontName === DEFAULT_FONT) {
137
137
  return "'Arial', ".concat(lang === 'zh-cn' ? "\u5B8B\u4F53" : 'Arial', ", 'sans-serif'");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.1.147",
3
+ "version": "0.1.148",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",