gradio/js/markdown
Abubakar Abid e7629f7eac
Adds copy event to gr.Markdown, gr.Chatbot, and gr.Textbox (#9979)
* add copy event

* add changeset

* test

* demo

* changes

* add changeset

* add list format

* typing

* notebook

* copy events'

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-19 19:58:19 +00:00
..
shared Adds copy event to gr.Markdown, gr.Chatbot, and gr.Textbox (#9979) 2024-11-19 19:58:19 +00:00
CHANGELOG.md chore: update versions (#9908) 2024-11-15 16:16:39 -08:00
Example.svelte Fix website build issue (#9756) 2024-10-18 23:00:04 +04:00
Index.svelte Adds copy event to gr.Markdown, gr.Chatbot, and gr.Textbox (#9979) 2024-11-19 19:58:19 +00:00
Markdown.stories.svelte 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
Markdown.test.ts
package.json chore: update versions (#9908) 2024-11-15 16:16:39 -08:00
README.md

@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;
	}[];