gradio-pr-bot commited on
Commit
c7d6cee
·
verified ·
1 Parent(s): 70f818d

Upload folder using huggingface_hub

Browse files
6.23.0/markdown/Example.svelte CHANGED
@@ -1,16 +1,25 @@
1
  <script lang="ts">
2
  import { MarkdownCode } from "@gradio/markdown-code";
3
 
4
- export let value: string | null;
5
- export let type: "gallery" | "table";
6
- export let selected = false;
7
- export let sanitize_html: boolean;
8
- export let line_breaks: boolean;
9
- export let latex_delimiters: {
10
- left: string;
11
- right: string;
12
- display: boolean;
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 context="module" lang="ts">
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>