gradio/js/markdown
pngwn 5bf00b7524
make all component SSR compatible (#9187)
* asd

* fixes

* make all components ssr compatible

* remove files

* add changeset

* add changeset

* review

* format

* clean

* address comments

* tweaks utils

* add changeset

* fix plot and audio

* format

* fix nativeplot

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-31 06:19:51 +00:00
..
shared make all component SSR compatible (#9187) 2024-08-31 06:19:51 +00:00
CHANGELOG.md chore: update versions (#9072) 2024-08-21 11:35:46 -07:00
Example.svelte make all component SSR compatible (#9187) 2024-08-31 06:19:51 +00:00
Index.svelte make all component SSR compatible (#9187) 2024-08-31 06:19:51 +00:00
Markdown.stories.svelte Add copy button to gr.Markdown (#8851) 2024-07-22 12:39:20 +01:00
Markdown.test.ts Fix published package exports (#9163) 2024-08-22 16:38:45 +00:00
package.json make all component SSR compatible (#9187) 2024-08-31 06:19:51 +00:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00

@gradio/markdown

<script>
    import { BaseMarkdown, MarkdownCode, BaseExample } from `@gradio/markdown`;
</script>

BaseMarkdown

	export let elem_id = "";
	export let elem_classes: string[] = [];
	export let visible = true;
	export let value: string;
	export let min_height = false;
	export let rtl = false;
	export let sanitize_html = true;
	export let line_breaks = false;
	export let latex_delimiters: {
		left: string;
		right: string;
		display: boolean;
	}[];

MarkdownCode

	export let chatbot = true;
	export let message: string;
	export let sanitize_html = true;
	export let latex_delimiters: {
		left: string;
		right: string;
		display: boolean;
	}[] = [];
	export let render_markdown = true;
	export let line_breaks = true;

BaseExample

	export let value: string;
	export let type: "gallery" | "table";
	export let selected = false;
	export let sanitize_html: boolean;
	export let line_breaks: boolean;
	export let latex_delimiters: {
		left: string;
		right: string;
		display: boolean;
	}[];