diff --git a/manifest.json b/manifest.json index c3c7609..981287b 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "excel", "name": "Excel", - "version": "1.3.0", + "version": "1.3.1", "minAppVersion": "0.15.0", "description": "Create spreadsheets and easily embed them in Markdown", "author": "ljcoder", diff --git a/src/MarkdownPostProcessor.ts b/src/MarkdownPostProcessor.ts index fd138e4..a7b7a7d 100644 --- a/src/MarkdownPostProcessor.ts +++ b/src/MarkdownPostProcessor.ts @@ -24,7 +24,7 @@ const tmpObsidianWYSIWYG = async ( ctx: MarkdownPostProcessorContext ) => { const file = plugin.app.vault.getAbstractFileByPath(ctx.sourcePath); - console.log("tmpObsidianWYSIWYG"); + // console.log("tmpObsidianWYSIWYG"); if (!(file instanceof TFile)) return; if (!plugin.isExcelFile(file)) return; @@ -194,7 +194,7 @@ const processReadingMode = async ( //is awaited, otherwise excalidraw images would not display in the Kanban plugin embeddedItems.forEach(async (maybeDrawing, index) => { //check to see if the file in the src attribute exists - console.log(maybeDrawing); + // console.log(maybeDrawing); const fname = maybeDrawing.getAttribute("src")?.split("#")[0]; if (!fname) return true; diff --git a/src/main.ts b/src/main.ts index 125e39c..c2efb81 100644 --- a/src/main.ts +++ b/src/main.ts @@ -79,7 +79,7 @@ export default class ExcelPlugin extends Plugin { this.app.workspace.onLayoutReady(() => { let leaf: WorkspaceLeaf; let markdownLeaf = this.app.workspace.getLeavesOfType("markdown") - console.log("switchToExcelAfterLoad", markdownLeaf); + // console.log("switchToExcelAfterLoad", markdownLeaf); for (leaf of markdownLeaf) { if ( leaf.view instanceof MarkdownView && @@ -113,7 +113,7 @@ export default class ExcelPlugin extends Plugin { this.register( around(Workspace.prototype, { getActiveViewOfType(old) { - console.log("Workspace.prototype", old); + // console.log("Workspace.prototype", old); return dedupe(key, old, function (...args) { const result = old && old.apply(this, args); const maybeSheetView = @@ -133,7 +133,7 @@ export default class ExcelPlugin extends Plugin { //stolen from hover editor around(WorkspaceLeaf.prototype, { getRoot(old) { - console.log("stolen from hover editor"); + // console.log("stolen from hover editor"); return function () { const top = old.call(this); return top.getRoot === this.getRoot @@ -202,7 +202,7 @@ export default class ExcelPlugin extends Plugin { detach(next) { return function () { const state = this.view?.getState(); - console.log('state--', state.file) + // console.log('state--', state.file) if ( state?.file && self.excelFileModes[this.id || state.file] diff --git a/src/utils/DataUtils.ts b/src/utils/DataUtils.ts index 683ce42..ab7c1db 100644 --- a/src/utils/DataUtils.ts +++ b/src/utils/DataUtils.ts @@ -74,7 +74,7 @@ export const getExcelAreaData = ( rowLen, eri - sri + 1 + cell.merge[0] ); - console.log(rowLen); + // console.log(rowLen); } } }