plotly / plotly/dash

dcc.Markdown: dccLink children should be interpreted as markdown too

Open
#1,977 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
Python
Stars
24.4k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
13

Description

If you use <dccLink href="..." children="some *styled* text" /> inside your dcc.Markdown in order to get high-performance links, currently this children prop won't interpret markdown. It also doesn't seem as though

<dccLink href="...">children</dccLink>

works at all, although it seems like it should. If it did, that might have been a workaround, ie:

<dccLink href="...">some *styled* text</dccLink>

or perhaps

<dccLink href="..."><dccMarkdown children="some *styled* text"/></dccLink>

related: https://github.com/plotly/ddk-dash-docs/pull/671#issuecomment-1071121251

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how dcc.Markdown renders dccLink children and compare the supported JSX forms with the linked react-jsx-parser behavior. Done means children such as "some styled text" are interpreted as markdown when used through dccLink, including the opening and closing form described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, react
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.