Pandoc: [Feature Request] Highlight table header row

Created on 10 Nov 2020  路  5Comments  路  Source: jgm/pandoc

If I have a following table

| Hello | World |
|-------|-------|
| data  | data  |

I think it will be better if highlight the first row (header)? Maybe make the word bold or change the background color, etc.

out of scope?

Most helpful comment

Bolding of the header is a presentational detail.
You can modify the Table style in a reference.docx so that it automatically bolds the header.
That's the thing to do if you want that look.

All 5 comments

Which target format are you referring to? PDF, HTML, or yet another?
It would also be helpful to learn more about how you are using tables, and why you think this would be a good change. Pandoc usually follows good typographic practices, so any typography resource supporting your request would be ideal. Otherwise we land in the realm of personal preferences and we try to avoid that as much as possible.

Which target format are you referring to? PDF, HTML, or yet another?

I am using pandoc converting from markdown to docx.

It would also be helpful to learn more about how you are using tables, and why you think this would be a good change. Pandoc usually follows good typographic practices, so any typography resource supporting your request would be ideal. Otherwise we land in the realm of personal preferences and we try to avoid that as much as possible.

Sounds good to me. This indeed may be a personal preferences thing; and yet it is why I mark it as feature request! ;)


Anyway, thanks for this amazing tool! I love it very much!

Current docx output is very much like current pdf output (neither bolds the heading).

You should be able to write a Lua filter that snags table heading cells and bolds the contents if that's the effect you want, or you can just do it it Markdown so that all formats actually have the same source and semantics.

Bolding of the header is a presentational detail.
You can modify the Table style in a reference.docx so that it automatically bolds the header.
That's the thing to do if you want that look.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anton-k picture anton-k  路  53Comments

nrnrnr picture nrnrnr  路  49Comments

jgm picture jgm  路  62Comments

stepht picture stepht  路  54Comments

GeraldLoeffler picture GeraldLoeffler  路  143Comments