Thanks to visit codestin.com
Credit goes to github.com

Skip to content

retrieve markdown table class from attributes #10884

@priiduonu

Description

@priiduonu

I would like to be able to write

| header1 | header2 |
|---------|---------|
| r1c1    | r1c2    |
| r2c1    | r2c2    |

: mycaption {.myclass}

and get the table class assigned to the table element, while removing it from the caption.

I know I can achieve it with fenced div blocks, but the shorthand version would be nice.

In the real world I am using pandoc-crossref, so my table usually looks like:

| header1 | header2 |
|---------|---------|
| r1c1    | r1c2    |
| r2c1    | r2c2    |

: mycaption {#tbl:id}

therefore I prefer the short version instead of wrapping the whole thing in extra div.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions