feat(workspace): slash commands ranked by name, taller link cards with a link marker
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 1m22s

- /li lists /link first: name prefix, aliases, name, then description
- link cards about twice as tall; the bare address below becomes an accent
  link marker; the link chip bar under bullets is gone, bare web addresses
  in text are links themselves

chore(release): v0.14.3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
sandrodachandClaude Opus 5.5 committed 2026-10-31 00:19:19 +01:00
1 parent 08ae91fcdb
commit 6a855fc32c
10 files changed
+109 -72

No files matched your search

+20 -2
View File
@@ -22,7 +22,7 @@ function renderInlineTokens(text: string, options?: InlineMarkdownOptions): Reac
const tagAlt = options?.onTagClick ? '|#[a-zA-Z0-9äöüÄÖÜß_-]+' : '';
const regex = new RegExp(
'(\\[\\[[^\\]]+\\]\\]|`[^`]+`|\\*\\*[^*]+\\*\\*|__[^_]+__|~~[^~]+~~|\\*[^*]+\\*|_[^_]+_|\\[([^\\]]+)\\]\\(([^)]+)\\)' + tagAlt + ')',
'(\\[\\[[^\\]]+\\]\\]|https?:\\/\\/[^\\s<>()\\[\\]]+[^\\s<>()\\[\\].,;:!?"\']|`[^`]+`|\\*\\*[^*]+\\*\\*|__[^_]+__|~~[^~]+~~|\\*[^*]+\\*|_[^_]+_|\\[([^\\]]+)\\]\\(([^)]+)\\)' + tagAlt + ')',
'g'
);
@@ -37,7 +37,25 @@ function renderInlineTokens(text: string, options?: InlineMarkdownOptions): Reac
const token = match[0];
const key = `${match.index}-${token}`;
if (token.startsWith('[[') && token.endsWith(']]')) {
if (/^https?:\/\//.test(token)) {
const href = safeHref(token);
elements.push(
href ? (
<a
key={key}
href={href}
target="_blank"
rel="noopener noreferrer"
className="text-accent underline underline-offset-2 decoration-accent/40 hover:decoration-accent break-all"
onClick={(e) => e.stopPropagation()}
>
{token}
</a>
) : (
token
)
);
} else if (token.startsWith('[[') && token.endsWith(']]')) {
const link = parseWikiLink(token.slice(2, -2));
const onClick = options?.onWikiLinkClick;
elements.push(