@lobehub/editor 1.5.6 → 1.5.7
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.
|
@@ -202,7 +202,7 @@ export var CommonPlugin = (_class = /*#__PURE__*/function (_KernelPlugin) {
|
|
|
202
202
|
ctx.appendLine('_');
|
|
203
203
|
}
|
|
204
204
|
if (isUnderline) {
|
|
205
|
-
ctx.appendLine('<
|
|
205
|
+
ctx.appendLine('<ins>');
|
|
206
206
|
}
|
|
207
207
|
var textContent = node.getTextContent();
|
|
208
208
|
var res = textContent.match(/\s+$/);
|
|
@@ -214,7 +214,7 @@ export var CommonPlugin = (_class = /*#__PURE__*/function (_KernelPlugin) {
|
|
|
214
214
|
var lastChar = append.at(-1);
|
|
215
215
|
ctx.appendLine(append);
|
|
216
216
|
if (isUnderline) {
|
|
217
|
-
ctx.appendLine('</
|
|
217
|
+
ctx.appendLine('</ins>');
|
|
218
218
|
}
|
|
219
219
|
if (isItalic) {
|
|
220
220
|
ctx.appendLine('_');
|
package/es/utils/debug.js
CHANGED
|
@@ -147,7 +147,7 @@ export var debugLogger = new DebugLogger();
|
|
|
147
147
|
*/
|
|
148
148
|
if (typeof window !== 'undefined') {
|
|
149
149
|
// Check for server-side DEBUG environment variable (passed through build process)
|
|
150
|
-
var envDebug = process.env.DEBUG;
|
|
150
|
+
var envDebug = typeof process !== 'undefined' ? process.env.DEBUG : undefined;
|
|
151
151
|
|
|
152
152
|
// Simple logic: Environment variable takes precedence, then development mode
|
|
153
153
|
var debugConfig = null;
|
|
@@ -293,7 +293,7 @@ export var browserDebug = {
|
|
|
293
293
|
*/
|
|
294
294
|
getConfig: function getConfig() {
|
|
295
295
|
if (typeof window !== 'undefined') {
|
|
296
|
-
var _envDebug = process.env.DEBUG;
|
|
296
|
+
var _envDebug = typeof process !== 'undefined' ? process.env.DEBUG : undefined;
|
|
297
297
|
var currentDebug = localStorage.getItem('debug');
|
|
298
298
|
if (_envDebug) {
|
|
299
299
|
return {
|
|
@@ -313,7 +313,7 @@ export var browserDebug = {
|
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
return {
|
|
316
|
-
enabled: process.env.DEBUG || false,
|
|
316
|
+
enabled: (typeof process !== 'undefined' ? process.env.DEBUG : undefined) || false,
|
|
317
317
|
source: 'server-side'
|
|
318
318
|
};
|
|
319
319
|
},
|
package/package.json
CHANGED