Skip to content

Commit a0b1998

Browse files
committed
add funding to manifest
1 parent d0d9ac5 commit a0b1998

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: ["mProjectsCode"]
1+
github: ['mProjectsCode']

manifest-beta.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"minAppVersion": "1.4.0",
66
"description": "Make your notes interactive with inline input fields, metadata displays, and buttons.",
77
"author": "Moritz Jung",
8-
"authorUrl": "https://mprojectscode.github.io/",
8+
"authorUrl": "https://www.moritzjung.dev/",
9+
"fundingUrl": "https://github.com/sponsors/mProjectsCode",
910
"helpUrl": "https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/",
1011
"isDesktopOnly": false
1112
}

manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"minAppVersion": "1.4.0",
66
"description": "Make your notes interactive with inline input fields, metadata displays, and buttons.",
77
"author": "Moritz Jung",
8-
"authorUrl": "https://mprojectscode.github.io/",
8+
"authorUrl": "https://www.moritzjung.dev/",
9+
"fundingUrl": "https://github.com/sponsors/mProjectsCode",
910
"helpUrl": "https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/",
1011
"isDesktopOnly": false
1112
}

packages/core/src/parsers/MarkdownLinkParser.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import { runParser } from 'packages/core/src/parsers/ParsingError';
55
import { isUrl } from 'packages/core/src/utils/Utils';
66
import { P_FilePath } from 'packages/core/src/parsers/nomParsers/GeneralNomParsers';
77

8-
const mdWikiLinkInnerParser: Parser<[string, string | undefined, string | undefined]> = P.sequence(
8+
const P_MDLinkInner: Parser<[string, string | undefined, string | undefined]> = P.sequence(
99
P_FilePath, // the file path
1010
P.string('#').then(P.manyNotOf('[]#|^:')).optional(), // the optional heading
1111
P.string('|').then(P.manyNotOf('[]')).optional(), // the optional alias
1212
);
1313

14-
const mdLinkParser: Parser<MarkdownLink> = P.or(
14+
const P_MDLink: Parser<MarkdownLink> = P.or(
1515
// wiki links
1616
P.sequenceMap(
1717
(a, b): MarkdownLink => {
@@ -24,7 +24,7 @@ const mdLinkParser: Parser<MarkdownLink> = P.or(
2424
};
2525
},
2626
P.string('!').optional(),
27-
mdWikiLinkInnerParser.wrapString('[[', ']]'),
27+
P_MDLinkInner.wrapString('[[', ']]'),
2828
),
2929
// standard markdown links
3030
P.sequenceMap(
@@ -45,10 +45,7 @@ const mdLinkParser: Parser<MarkdownLink> = P.or(
4545
),
4646
);
4747

48-
const mdLinkListParser: Parser<MarkdownLink[]> = P.separateBy(
49-
mdLinkParser,
50-
P.string(',').trim(P_UTILS.optionalWhitespace()),
51-
);
48+
const P_MDLinkList: Parser<MarkdownLink[]> = P.separateBy(P_MDLink, P.string(',').trim(P_UTILS.optionalWhitespace()));
5249

5350
export interface MarkdownLink {
5451
isEmbed: boolean;
@@ -60,15 +57,15 @@ export interface MarkdownLink {
6057

6158
export class MDLinkParser {
6259
static parseLink(link: string): MarkdownLink {
63-
return runParser(mdLinkParser.thenEof(), link);
60+
return runParser(P_MDLink.thenEof(), link);
6461
}
6562

6663
static parseLinkList(link: string): MarkdownLink[] {
67-
return runParser(mdLinkListParser.thenEof(), link);
64+
return runParser(P_MDLinkList.thenEof(), link);
6865
}
6966

7067
static isLink(str: string): boolean {
71-
return mdLinkParser.thenEof().tryParse(str).success;
68+
return P_MDLink.thenEof().tryParse(str).success;
7269
}
7370

7471
static urlToLink(url: URL): MarkdownLink {

0 commit comments

Comments
 (0)