GESIS-Methods-Hub / andrew

Content Aggregation System for tutorials and vignette of reproducible computational methods.
https://gesis-methods-hub.github.io/andrew/
2 stars 0 forks source link

Add support to DOCX style in tables #7

Closed rgaiacs closed 1 year ago

rgaiacs commented 1 year ago

MWE

Pandoc applies the same strategy of paragraph style (see https://github.com/GESIS-Methods-Hub/methodshub/issues/6) to tables. pandoc -f docx+styles -t markdown -s table-style-test.docx produces

+-----------------------------------+-----------------------------------+
| ::: {custom-style="Foo"}          | ::: {custom-style="Foo"}          |
| A                                 | B                                 |
| :::                               | :::                               |
+===================================+===================================+
| ::: {custom-style="Bar"}          | ::: {custom-style="Bar"}          |
| C                                 | D                                 |
| :::                               | :::                               |
+-----------------------------------+-----------------------------------+

which I think is not very useful.

rgaiacs commented 1 year ago

Implemented in https://github.com/GESIS-Methods-Hub/methodshub/pull/33!