Skip to content

Commit

Permalink
2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyuping committed Oct 24, 2022
1 parent 99fd983 commit 7eea1cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ export default class QuickLatexPlugin extends Plugin {
const letter_after_superscript = editor.getRange(
{ line: position.line, ch: last_superscript + 1 },
{ line: position.line, ch: last_superscript + 2 });
if (letter_after_superscript == '(' && letter_before_cursor == ')') {
if (letter_after_superscript == '(' && letter_before_cursor == ')' && position.ch-last_superscript > 6) {
editor.replaceRange(
'}',
{ line: position.line, ch: position.ch - 1 },
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "quick-latex",
"name": "Quick Latex for Obsidian",
"version": "2.4.0",
"version": "2.5.0",
"minAppVersion": "0.9.12",
"description": "Speedup latex math typing with auto fraction, align block shortcut, matrix shortcut...etc",
"author": "joeyuping",
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ 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_obsidian',
dir: 'D:/Obsidian/AI/.obsidian/plugins/quick-latex',
dir: 'D:/1 Projects/AI/.obsidian/plugins/quick_latex',
// dir: 'D:/Obsidian/AI/.obsidian/plugins/quick-latex',
sourcemap: 'inline',
sourcemapExcludeSources: isProd,
format: 'cjs',
Expand Down

0 comments on commit 7eea1cb

Please sign in to comment.