From d031fc19c901e4ac467726df412bf416743b1e20 Mon Sep 17 00:00:00 2001 From: joeyuping Date: Mon, 29 May 2023 08:26:36 +0800 Subject: [PATCH] 2.6.2 --- main.ts | 10 ++++------ manifest.json | 2 +- rollup.config.js | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/main.ts b/main.ts index d4afd78..fe587a6 100644 --- a/main.ts +++ b/main.ts @@ -821,7 +821,6 @@ export default class QuickLatexPlugin extends Plugin { ])); async onload() { - console.log('loading Quick-Latex plugin'); this.registerEditorExtension(this.makeExtensionThing()); @@ -836,11 +835,11 @@ export default class QuickLatexPlugin extends Plugin { shorthands = shorthands.slice(0,-1) } if(shorthands.lastIndexOf(";\n")==-1){ - this.shorthand_array = shorthands.split(",").map(item=>item.split(":").map(item=>item.trim())); + this.shorthand_array = shorthands.split(",").map(item=>item.split(":")); } else if (shorthands.lastIndexOf(":::")==-1) { this.shorthand_array = shorthands.split(";\n").map(item=>item.split(":")); } else { - this.shorthand_array = shorthands.split(";\n").map(item=>item.split(":::").map(item=>item.trim())); + this.shorthand_array = shorthands.split(";\n").map(item=>item.split(":::")); } // preprocess autoAlign array @@ -1920,7 +1919,6 @@ export default class QuickLatexPlugin extends Plugin { }; public onunload(): void { - console.log('unloading Quick-Latex plugin'); this.app.workspace.iterateCodeMirrors((cm) => { cm.off('vim-mode-change', this.handleVimModeChange); @@ -2215,11 +2213,11 @@ class QuickLatexSettingTab extends PluginSettingTab { value = value.slice(0,-1) } if(value.lastIndexOf(";\n")==-1){ - this.plugin.shorthand_array = value.split(",").map(item=>item.split(":").map(item=>item.trim())); + this.plugin.shorthand_array = value.split(",").map(item=>item.split(":")); } else if (value.lastIndexOf(":::")==-1) { this.plugin.shorthand_array = value.split(";\n").map(item=>item.split(":")); } else { - this.plugin.shorthand_array = value.split(";\n").map(item=>item.split(":::").map(item=>item.trim())); + this.plugin.shorthand_array = value.split(";\n").map(item=>item.split(":::")); } await this.plugin.saveData(this.plugin.settings); diff --git a/manifest.json b/manifest.json index 8bb7264..34de733 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "quick-latex", "name": "Quick Latex for Obsidian", - "version": "2.6.1", + "version": "2.6.2", "minAppVersion": "0.9.12", "description": "Speedup latex math typing with auto fraction, align block shortcut, matrix shortcut...etc", "author": "joeyuping", diff --git a/rollup.config.js b/rollup.config.js index 8477307..21a830c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -14,7 +14,7 @@ if you want to view the source visit the plugins github repository export default { input: 'main.ts', output: { - dir: 'D:/1 Projects/AI/.obsidian/plugins/quick-latex', + dir: 'D:/Obsidian/AI/.obsidian/plugins/quick-latex', // dir: 'D:/Obsidian/AI/.obsidian/plugins/quick-latex', sourcemap: 'inline', sourcemapExcludeSources: isProd,