Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Markdown inside DataTable is adding paragraph around it

$
0
0

When markdown is used in DashTable, an additional <p> tag is added making the cell and intern all rows larger.

import dash
from dash import dash_table
app = dash.Dash()
app.layout = dash_table.DataTable(
    [
        {'Col1': 1, 'Col2': 2, 'Col3': 'Text3'},
        {'Col1': 4, 'Col2': 5, 'Col3': 'Text6'}
    ],
    [
        {'name': 'Col1', 'id': 'Col1'},
        {'name': 'Col2', 'id': 'Col2'},
        {'name': 'Col3', 'id': 'Col3', 'presentation':'markdown'},
    ]
)

app.run_server(host='localhost', port=5050)

Is there a way to control this from markdown_options?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images