Black Lives Matter. Please consider donating to Black Girls Code today.

Markdown sublists don't work?

I am using this markdown sublist, but it doesn’t render correctly.

  • this is a list
    • this is a sublist
    dcc.Markdown('''
* This is a list
   * This is a sublist
    '''
```

Hm, I"ve used these successfully in the docs:

https://github.com/plotly/dash-docs/blob/8e170e3f57f116421999dcbafff89925d24d19ea/tutorial/sharing_state.py#L133-L149

For some reason, it is not working for me. This is what I get with your code:

16 AM

Any ideas?

Got it!

To use: from textwrap import dedent as s so that:

dcc.Markdown(s('''
* This is a list
   * This is a sublist
    '''))
1 Like

What about numbered lists please? they arn’ working for me:
dcc.Markdown(s(
“”"
The program will undertake the following steps in order to arrange the modules:
1) item onos
2) item two
“”"
)),

image