We start with a gr.Dataset with the components=['markdown'] and samples set but after an event that updates the samples in the dataset the display looks like it lost the markdown formatting and is formatted as if components=['text'].
Is there an existing issue for this?
[X] I have searched the existing issues
Reproduction
import gradio as gr
data = [['hello\nmd']]
def btn_click():
return [['changed to\nnot md']]
with gr.Blocks() as demo:
with gr.Row():
dataset = gr.Dataset(components=['markdown'], type='index', samples=data, label='Results')
btn = gr.Button("btn")
Describe the bug
We start with a
gr.Dataset
with thecomponents=['markdown']
andsamples
set but after an event that updates the samples in the dataset the display looks like it lost the markdown formatting and is formatted as ifcomponents=['text']
.Is there an existing issue for this?
Reproduction
import gradio as gr
data = [['hello\nmd']]
def btn_click(): return [['changed to\nnot md']]
with gr.Blocks() as demo: with gr.Row(): dataset = gr.Dataset(components=['markdown'], type='index', samples=data, label='Results') btn = gr.Button("btn")
btn.click(fn=btn_click, inputs=[], outputs=[dataset])
demo.launch()
Screenshot
Logs
System Info
Severity
annoying