mirror of
https://github.com/quartz-community/note-properties.git
synced 2026-07-22 02:50:26 +00:00
build: bundle dependencies and ship pre-built dist
This commit is contained in:
parent
106f3ac7ac
commit
c032ef78dd
4 changed files with 16 additions and 10 deletions
11
dist/components/index.js
vendored
11
dist/components/index.js
vendored
|
|
@ -175,7 +175,7 @@ function renderTextWithLinks(text, ctx) {
|
|||
segments.push({
|
||||
start: match.index,
|
||||
end: match.index + match[0].length,
|
||||
node: /* @__PURE__ */ u2("a", { href, class: "internal note-properties-link", children: display })
|
||||
node: /* @__PURE__ */ u2("a", { href, class: "internal internal-link note-properties-link", children: display })
|
||||
});
|
||||
}
|
||||
for (const match of text.matchAll(MDLINK_RE)) {
|
||||
|
|
@ -194,7 +194,10 @@ function renderTextWithLinks(text, ctx) {
|
|||
"a",
|
||||
{
|
||||
href: resolvedHref,
|
||||
class: classNames(isExternal ? "external" : "internal", "note-properties-link"),
|
||||
class: classNames(
|
||||
isExternal ? "external external-link" : "internal internal-link",
|
||||
"note-properties-link"
|
||||
),
|
||||
...isExternal ? { target: "_blank", rel: "noopener noreferrer" } : {},
|
||||
children: display || href
|
||||
}
|
||||
|
|
@ -213,7 +216,7 @@ function renderTextWithLinks(text, ctx) {
|
|||
"a",
|
||||
{
|
||||
href: match[0],
|
||||
class: "external note-properties-link",
|
||||
class: "external external-link note-properties-link",
|
||||
target: "_blank",
|
||||
rel: "noopener noreferrer",
|
||||
children: match[0]
|
||||
|
|
@ -271,7 +274,7 @@ function renderTagList(tags, ctx) {
|
|||
const href = resolveRelative(ctx.slug, `tags/${tag}`);
|
||||
return /* @__PURE__ */ u2(S, { children: [
|
||||
idx > 0 && /* @__PURE__ */ u2("span", { class: "note-properties-separator", children: ", " }),
|
||||
/* @__PURE__ */ u2("a", { href, class: "internal tag-link", children: tag })
|
||||
/* @__PURE__ */ u2("a", { href, class: "internal internal-link tag-link", children: tag })
|
||||
] });
|
||||
});
|
||||
return /* @__PURE__ */ u2("span", { class: "note-properties-tags", children: items });
|
||||
|
|
|
|||
2
dist/components/index.js.map
vendored
2
dist/components/index.js.map
vendored
File diff suppressed because one or more lines are too long
11
dist/index.js
vendored
11
dist/index.js
vendored
|
|
@ -10734,7 +10734,7 @@ function renderTextWithLinks(text, ctx) {
|
|||
segments.push({
|
||||
start: match.index,
|
||||
end: match.index + match[0].length,
|
||||
node: /* @__PURE__ */ u2("a", { href, class: "internal note-properties-link", children: display })
|
||||
node: /* @__PURE__ */ u2("a", { href, class: "internal internal-link note-properties-link", children: display })
|
||||
});
|
||||
}
|
||||
for (const match of text.matchAll(MDLINK_RE)) {
|
||||
|
|
@ -10753,7 +10753,10 @@ function renderTextWithLinks(text, ctx) {
|
|||
"a",
|
||||
{
|
||||
href: resolvedHref,
|
||||
class: classNames(isExternal ? "external" : "internal", "note-properties-link"),
|
||||
class: classNames(
|
||||
isExternal ? "external external-link" : "internal internal-link",
|
||||
"note-properties-link"
|
||||
),
|
||||
...isExternal ? { target: "_blank", rel: "noopener noreferrer" } : {},
|
||||
children: display || href
|
||||
}
|
||||
|
|
@ -10772,7 +10775,7 @@ function renderTextWithLinks(text, ctx) {
|
|||
"a",
|
||||
{
|
||||
href: match[0],
|
||||
class: "external note-properties-link",
|
||||
class: "external external-link note-properties-link",
|
||||
target: "_blank",
|
||||
rel: "noopener noreferrer",
|
||||
children: match[0]
|
||||
|
|
@ -10830,7 +10833,7 @@ function renderTagList(tags, ctx) {
|
|||
const href = resolveRelative2(ctx.slug, `tags/${tag}`);
|
||||
return /* @__PURE__ */ u2(S, { children: [
|
||||
idx > 0 && /* @__PURE__ */ u2("span", { class: "note-properties-separator", children: ", " }),
|
||||
/* @__PURE__ */ u2("a", { href, class: "internal tag-link", children: tag })
|
||||
/* @__PURE__ */ u2("a", { href, class: "internal internal-link tag-link", children: tag })
|
||||
] });
|
||||
});
|
||||
return /* @__PURE__ */ u2("span", { class: "note-properties-tags", children: items });
|
||||
|
|
|
|||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue