diff --git a/manifest.json b/manifest.json index 56fc9ed..4fb4577 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "the-only-ever-plugin-dev", "name": "Only Ever", - "version": "1.5.1-dev", + "version": "1.5.3-devĀ ", "minAppVersion": "0.15.0", "description": "This is a sample plugin for Obsidian. This plugin demonstrates some of the capabilities of the Obsidian API.", "author": "Obsidian", diff --git a/package-lock.json b/package-lock.json index 3832e7a..91e07af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "babel-loader": "^9.1.3", "install": "^0.13.0", "mdast-squeeze-paragraphs": "^6.0.0", - "mdast-util-from-markdown": "^2.0.0", + "mdast-util-from-markdown": "^2.0.2", "mdast-util-gfm-table": "^2.0.0", "mdast-util-math": "^3.0.0", "micromark-extension-gfm-table": "^2.0.0", @@ -4645,9 +4645,10 @@ } }, "node_modules/mdast-util-from-markdown": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.0.tgz", - "integrity": "sha512-n7MTOr/z+8NAX/wmhhDji8O3bRvPTV/U0oTCaZJkjhPSKTPhS3xufVhKGF8s1pJ7Ox4QgoIU7KHseh09S+9rTA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.2.tgz", + "integrity": "sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA==", + "license": "MIT", "dependencies": { "@types/mdast": "^4.0.0", "@types/unist": "^3.0.0", diff --git a/package.json b/package.json index 9c316f7..067fe4e 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "babel-loader": "^9.1.3", "install": "^0.13.0", "mdast-squeeze-paragraphs": "^6.0.0", - "mdast-util-from-markdown": "^2.0.0", + "mdast-util-from-markdown": "^2.0.2", "mdast-util-gfm-table": "^2.0.0", "mdast-util-math": "^3.0.0", "micromark-extension-gfm-table": "^2.0.0", diff --git a/src/classes.ts b/src/classes.ts index 18f9a49..1273b13 100644 --- a/src/classes.ts +++ b/src/classes.ts @@ -38,6 +38,11 @@ export class ParagraphBlock extends OeBlock { this.content = block.content; } else { this.content = removeNewLine(toMarkdown(block, { extensions: [mathToMarkdown()] })) + + console.log('content', this.content); + //remove \[\[ from content for internal links + this.content = this.content.replace(/\\(?=\[)/g, ''); + console.log('content-after', this.content); } }