Upload folder using huggingface_hub
Browse files- 6.23.0/markdown/Example.svelte +19 -10
- 6.23.0/markdown/Index.svelte +1 -1
6.23.0/markdown/Example.svelte
CHANGED
|
@@ -1,16 +1,25 @@
|
|
| 1 |
<script lang="ts">
|
| 2 |
import { MarkdownCode } from "@gradio/markdown-code";
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
function truncate_text(text: string | null, max_length = 60): string {
|
| 16 |
if (!text) return "";
|
|
|
|
| 1 |
<script lang="ts">
|
| 2 |
import { MarkdownCode } from "@gradio/markdown-code";
|
| 3 |
|
| 4 |
+
let {
|
| 5 |
+
value,
|
| 6 |
+
type,
|
| 7 |
+
selected = false,
|
| 8 |
+
sanitize_html,
|
| 9 |
+
line_breaks,
|
| 10 |
+
latex_delimiters
|
| 11 |
+
}: {
|
| 12 |
+
value: string | null;
|
| 13 |
+
type: "gallery" | "table";
|
| 14 |
+
selected?: boolean;
|
| 15 |
+
sanitize_html: boolean;
|
| 16 |
+
line_breaks: boolean;
|
| 17 |
+
latex_delimiters: {
|
| 18 |
+
left: string;
|
| 19 |
+
right: string;
|
| 20 |
+
display: boolean;
|
| 21 |
+
}[];
|
| 22 |
+
} = $props();
|
| 23 |
|
| 24 |
function truncate_text(text: string | null, max_length = 60): string {
|
| 25 |
if (!text) return "";
|
6.23.0/markdown/Index.svelte
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
<script
|
| 2 |
export { default as BaseMarkdown } from "./shared/Markdown.svelte";
|
| 3 |
export { default as BaseExample } from "./Example.svelte";
|
| 4 |
</script>
|
|
|
|
| 1 |
+
<script module lang="ts">
|
| 2 |
export { default as BaseMarkdown } from "./shared/Markdown.svelte";
|
| 3 |
export { default as BaseExample } from "./Example.svelte";
|
| 4 |
</script>
|