Skip to content

Is it possible to generate borders with Markdown tables #863

@Jacob-Barhak

Description

@Jacob-Barhak

The panel group redirected me to your issue tracker to see if markdown can provide remedy for this issue.

I am using panel that uses markdown and I am trying to generate a table with borders. Here is the code I am using in panel:

import panel as pn
from bokeh.resources import INLINE

SimpleTable = pn.panel("""
|     Time    | Number of Trial with Results | Unique Units |
|:-----------:|:----------------------------:|:------------:|
| 20 Apr 2018 |            30,763            |    21,094    |
|  7 Feb 2019 |            34,751            |    23,733    |
| 12 Apr 2019 |            35,926            |    24,548    |
|             |                              |              |

""")

SimpleTable.save('SimpleTable', resources=INLINE) 

The code generates a nice table, yet without borders.

image

Now the question is whether you can force table borders to be drawn in markdown or are visual look aspects need to be handled elsewhere by panel, bokeh, or some CSS.

It may be a question open for debate - will be happy to get feedback.

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