-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathlinkify.stories.tsx
More file actions
54 lines (49 loc) · 2.15 KB
/
linkify.stories.tsx
File metadata and controls
54 lines (49 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* Copyright 2026 Element Creations Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
* Please see LICENSE files in the repository root for full details.
*/
import React from "react";
import { Markdown } from "@storybook/addon-docs/blocks";
import type { Meta } from "@storybook/react-vite";
import LinkifyMatrixOpaqueIdType from "../../../typedoc/enumerations/LinkifyMatrixOpaqueIdType.md?raw";
import findLinksInString from "../../../typedoc/functions/findLinksInString.md?raw";
import isLinkable from "../../../typedoc/functions/isLinkable.md?raw";
import linkifyHtml from "../../../typedoc/functions/linkifyHtml.md?raw";
import linkifyString from "../../../typedoc/functions/linkifyString.md?raw";
import generateLinkedTextOptions from "../../../typedoc/functions/generateLinkedTextOptions.md?raw";
import LinkedTextOptions from "../../../typedoc/interfaces/LinkedTextOptions.md?raw";
const meta = {
title: "Core/Linkify",
parameters: {
docs: {
page: () => (
<>
<h1>Linkify utilities</h1>
<p>Supporting functions and types for parsing links from HTML/strings.</p>
<h2>LinkifyMatrixOpaqueIdType</h2>
<Markdown>{LinkifyMatrixOpaqueIdType}</Markdown>
<h2>findLinksInString</h2>
<Markdown>{findLinksInString}</Markdown>
<h2>isLinkable</h2>
<Markdown>{isLinkable}</Markdown>
<h2>linkifyHtml</h2>
<Markdown>{linkifyHtml}</Markdown>
<h2>linkifyString</h2>
<Markdown>{linkifyString}</Markdown>
<h2>generateLinkedTextOptions</h2>
<Markdown>{generateLinkedTextOptions}</Markdown>
<h3>LinkedTextOptions</h3>
<Markdown>{LinkedTextOptions}</Markdown>
</>
),
},
},
tags: ["autodocs", "skip-test"],
} satisfies Meta;
export default meta;
// Docs-only story - renders nothing but triggers autodocs
export const Docs = {
render: () => null,
};