gradio/js/markdown
pngwn 160e389580
chore: update versions (#6825)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-19 16:17:10 -08:00
..
shared Fix md highlight (#6842) 2023-12-19 20:42:41 +00:00
CHANGELOG.md chore: update versions (#6825) 2023-12-19 16:17:10 -08:00
Example.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Index.svelte Add an option to enable header links for markdown (#6831) 2023-12-18 20:06:20 +00:00
Markdown.stories.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
package.json chore: update versions (#6825) 2023-12-19 16:17:10 -08: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;
	}[];