Skip to content

[BUG] dcc.Markdown with a <dccLink children="..." /> does not render children #3951

Description

@KoolADE85

As of v4.4.0 dcc.Markdown does not render dccLinks properly when they use a children prop. The link is rendered using the href instead.

With this code:

dcc.Markdown(
    '<dccLink href="/page-2" children="Go to page 2" />',
    dangerously_allow_html=True,
),

Prior to v4.4.0:
Image

On v4.4.0:

Image

This is a result of upgrading react-jsx-parser (1.21.0 → 2.4.1) which changed its behaviour under the hood.

Metadata

Metadata

Assignees

Labels

P1needed for current cycle

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions