Skip to content

[BUG] Cannot use span tag in markdown #959

@Batalex

Description

@Batalex

Describe your context
Please provide us your environment so we can easily reproduce the issue.

  • replace the result of pip list | grep dash below
dash==1.3.1
dash-core-components==1.2.1
dash-html-components==1.0.1
dash-renderer==1.1.0
dash-table==4.3.0

Describe the bug

Html should be valid markdown, however I cannot use span tags to change the font color for example.

Here is an example:

dcc.Markdown(["foo <span style='color:red'>bar</span>"], dangerously_allow_html=True)

which is rendered like this

<p>foo <span><span style="color:red"></span></span>bar<span></span></p>

Expected behavior

"bar" should be enclosed in my defined span tag.

Edit: typo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions