From a547b09baef49cd4d82e5ccf52b1b7409b549d83 Mon Sep 17 00:00:00 2001 From: Justin Parker Date: Mon, 2 Dec 2024 13:37:23 -0800 Subject: [PATCH] fix footnote link reged --- example-vault.zip | Bin 8153112 -> 8153094 bytes .../.obsidian/plugins/rich-foot/main.js | 2 +- .../.obsidian/workspace.json | 46 ++++++++++-------- src/main.js | 4 +- 4 files changed, 28 insertions(+), 24 deletions(-) diff --git a/example-vault.zip b/example-vault.zip index 94e6251f327970cdbd6aad51d6514aca7a9c4b07..e9e2f630d7dd6e7064bba80c6e4089508cc964e6 100644 GIT binary patch delta 10118 zcmZvi1zZ$e*TC6b8Yw|QLO_v_R_T@!DT7kFL^>r022epI6=aYQOjJZrkfj#{L0U>c zVrh^Li6wTvS$&@8ectc;;P+?do^$TG=f><_?ws^*YnT{>SM@h z$w)tm9uKPXk6Iz}|EsHYk4}j~m2mV6{?1#l0pWB`OHVUA@E}geuwk=1jZ5byEg_8rT^8NL=T8p2-8hTnlBGw z?6wdl=(oL(2&Pnz!|r$e+=zb%(@;F-^Z`2#JRof)*;}d>ZpZcA!z3S?4Lr)43MH;I9j&<@^P*%y*OA+!H{s+%O+Wc8{@E|U z`(@lECYsL->HzcJkaNT0I4>5vjVVDL$G_RleuK9<$hdcDI$k=BU2!A>jV|?>m5Rzc zDrRzy4gQ8rAYfups80~<9wr}*INY=?`i8@3NOZ}`@ma$J{-MEmlp)K_eO_pNre5ZbU5C?@cb8>fCHn_vTXKkviZ%8DFAS1KRmWm5E(121Kg&#ksRZ z_KqlPhfLKB&(EuUb1fa;;%HzflM~X=uIS5{Kb#y@|Dn1`%Hk#1k|N3odX}F4(O{dL zm7P*!_;U`!IOdSbpIuCw`!;<{|IT>7Cew4DhG-TnPto4#VX#6*$LwtVr^KctWsO7% zTy)TfJ9-mhvKwCC>`Wi^RK52tz~@=b8u?w1Bl8%cz8atutsn8K$%l3`vCsNb((@Qf z$GgEJ6rWdRhC-=TuPZWmmx1X~0~JY)mpt} z%gZ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1_L2A1)GlTPq3;AjQ% zIb$V|%jEKDFx(ldjh;a|{uv1)%8?D+bjB*9KcW6gOkCiBI${168eOn@Xj;m@g+DW+ zc?D~L!pMSwZtx8X&jUO7>3H)G{DM%jUHGw(Bd4Hm4zJr{;%yYY>Vm_Py5s*2Qo@vg~?AZ zEz95VNe*m(Ll!x{`gy>XX{Y{U$qtHjqy9d~$NxG(K?%EsaDx9fPQyMbW8u>O09d#r Ar~m)} diff --git a/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/main.js b/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/main.js index 59454fe..b1d991b 100644 --- a/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/main.js +++ b/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/main.js @@ -1051,7 +1051,7 @@ var RichFootPlugin = class extends import_obsidian3.Plugin { } } const fileContent = await this.app.vault.read(file); - const inlineFootnoteRegex = /\^\[((?:[^\[\]]|\[(?:[^\[\]]|\[[^\[\]]*\])*)*)\]/g; + const inlineFootnoteRegex = /\^\[((?:[^\[\]]|\[(?:[^\[\]]|\[[^\[\]]*\])*\])*)\]/g; const refFootnoteRegex = /\[\^[^\]]+\]:\s*((?:[^\[\]]|\[(?:[^\[\]]|\[[^\[\]]*\])*\])*)/g; let match; while ((match = inlineFootnoteRegex.exec(fileContent)) !== null) { diff --git a/example-vault/rich-foot-example/.obsidian/workspace.json b/example-vault/rich-foot-example/.obsidian/workspace.json index a1bc418..de1f944 100644 --- a/example-vault/rich-foot-example/.obsidian/workspace.json +++ b/example-vault/rich-foot-example/.obsidian/workspace.json @@ -21,24 +21,8 @@ "icon": "lucide-file", "title": "🦶 Rich Foot" } - }, - { - "id": "930061c455a4487c", - "type": "leaf", - "state": { - "type": "markdown", - "state": { - "file": "🦶 Rich Foot.md", - "mode": "preview", - "backlinks": false, - "source": false - }, - "icon": "lucide-file", - "title": "🦶 Rich Foot" - } } - ], - "currentTab": 1 + ] } ], "direction": "vertical" @@ -3024,6 +3008,26 @@ { "id": "e7ee6ca0a6279e30", "type": "leaf", + "state": { + "type": "empty", + "state": {}, + "icon": "lucide-file", + "title": "New tab" + } + }, + { + "id": "52068618fa3e04b4", + "type": "leaf", + "state": { + "type": "empty", + "state": {}, + "icon": "lucide-file", + "title": "New tab" + } + }, + { + "id": "5ee8ef35ab61bc8c", + "type": "leaf", "state": { "type": "Saved Queries View", "state": {}, @@ -3032,7 +3036,7 @@ } } ], - "currentTab": 291 + "currentTab": 293 } ], "direction": "horizontal", @@ -3051,17 +3055,17 @@ "canvas:Create new canvas": false } }, - "active": "930061c455a4487c", + "active": "5173ce34fa31fa9f", "lastOpenFiles": [ "misc-notes/link test.md", - "test.md", + "misc-notes/three.md", "misc-notes/link test 2.md", "🦶 Rich Foot.md", + "test.md", "releases/v1.9.0 - 🥙 Stuffed Links.md", "releases/v1.8.0 - 🫣 Page Preview Support.md", "releases/v1.7.0 - 📆 Dates Your Way.md", "misc-notes/two.md", - "misc-notes/three.md", "misc-notes/one.md", "exclude/no rich-feet here.md", "exclude/me too/no rich-feet here either.md", diff --git a/src/main.js b/src/main.js index cf3b979..e974f1b 100644 --- a/src/main.js +++ b/src/main.js @@ -714,8 +714,8 @@ class RichFootPlugin extends Plugin { // Handle inline footnotes by reading the file content const fileContent = await this.app.vault.read(file); - // Match inline footnotes with improved regex for nested brackets - const inlineFootnoteRegex = /\^\[((?:[^\[\]]|\[(?:[^\[\]]|\[[^\[\]]*\])*)*)\]/g; + // Match inline footnotes (nested brackets) + const inlineFootnoteRegex = /\^\[((?:[^\[\]]|\[(?:[^\[\]]|\[[^\[\]]*\])*\])*)\]/g; // altering this will break link detection const refFootnoteRegex = /\[\^[^\]]+\]:\s*((?:[^\[\]]|\[(?:[^\[\]]|\[[^\[\]]*\])*\])*)/g; let match;