This commit is contained in:
Devon22 2025-04-09 00:27:25 +08:00
parent d5ff6ed55b
commit e26c78f0b4
5 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
{
"id": "mediaviewer",
"name": "Media Viewer",
"version": "1.9.2",
"version": "1.9.3",
"minAppVersion": "1.1.0",
"description": "View and manage media files within your notes.",
"author": "Devon22",

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "mediaviewer",
"version": "1.9.2",
"version": "1.9.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "mediaviewer",
"version": "1.9.2",
"version": "1.9.3",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.6",

View file

@ -1,6 +1,6 @@
{
"name": "mediaviewer",
"version": "1.9.2",
"version": "1.9.3",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {

View file

@ -174,7 +174,7 @@ export class GalleryBlock {
// 檢查是否為內部連結 [[note]]
const internalLinkMatch = titleText.match(/\[\[(.*?)(?:\|.*?)?\]\]/);
if (internalLinkMatch) {
const linktext = internalLinkMatch[1].split('|')[0];
const linktext = internalLinkMatch[1].split('|')[0].split('#')[0];
const file = this.app.metadataCache.getFirstLinkpathDest(linktext, '');
containerTitle = {
text: linktext,
@ -210,7 +210,7 @@ export class GalleryBlock {
// 檢查是否為內部連結
const internalLinkMatch = titleText.match(/\[\[(.*?)(?:\|.*?)?\]\]/);
if (internalLinkMatch) {
const linktext = internalLinkMatch[1].split('|')[0];
const linktext = internalLinkMatch[1].split('|')[0].split('#')[0];
const file = this.app.metadataCache.getFirstLinkpathDest(linktext, '');
currentTitle = {
text: linktext,

View file

@ -1,3 +1,3 @@
{
"1.9.2": "1.1.0"
"1.9.3": "1.1.0"
}