Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Support for rendering links inside dcc.Markdown as dcc.Link for single page dash apps #250

Closed
@chriddyp

Description

@chriddyp

I use dcc.Markdown really extensively in dash-docs. It's great! However, a few things would make my life a lot easier:

  1. (Done!) GitHub style language tags, that is:
``python
def dash():
     pass

Edit - This has been done!

  1. Ability for the hyper links to use dcc.Link instead of the HTML link

Currently, I have to break out my dcc.Link from dcc.Markdown, which is pretty tedious:
https://github.com/plotly/dash-docs/blob/58b6f84f2d8012d1ae686f1379f326a292370ee3/tutorial/getting_started_part_2.py#L260-L269

  1. (Done!) Automatic dedenting. Right now, I use textwrap.dedent everwhere in my text. If I don't use dedent, then the markdown is formatted as code (4 indents in markdown is code). It would be nice if I could just pass in dedent=True or something

Edit - This has been done!

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions