The bold style was just a proof of concept because that is what people most often want. You could just as well wrap the cell content in a span or div for CSS styling, or inject raw LaTeX or other markup depending on your target format. If the content of the cells in your docx file is styled with a named character style[^1] you can run pandoc with `--from docx+styles` and paragraphs/text styled with a named style are wrapped in divs/spans with a custom attribute `custom-style` with the style name as value. A filter script can locate spans or divs with such an attribute and modify its attributes to something more CSS friendly and/or inject markup. It might even pay off to go through the docx file in a word processor and apply one or more named paragraph styles to be picked up by filter script(s). It is also possible to match the raw text of table cells, even though Lua regular expressions are rather limited.[^2] [^1]: I'm unsure whether paragraph styles work in tables — I'm not a Word user and only a very reluctant LibreOffice user and table styles are not yet supported by Pandoc. [^2]: Alternations, quantified groups and Unicode are not supported which severely limits matching possibilities. Sometimes it is possible to try multiple patterns instead. Den ons 6 okt. 2021 11:44Cardea skrev: > I'm sorry I know my jargon is not really precise, your script is closely > related to what > I want except that it systematically bolds the first column. > I looked into the documentation > > and I guess it is related to the conditional formatting of the first "VBand" > On Tuesday, 5 October 2021 at 13:13:02 UTC+2 BP wrote: > >> On 2021-10-05 10:18, Cardea wrote: >> > >> > Greetings, >> > The docx reader now can converts pretty accurately word table; Also it >> > looks like first column table header are not kept around. I guess this >> is >> > so because the AST can not accommodate for this kind of structure. >> > Is there any project of at least keeping this information around? >> > >> > Thanks >> > >> >> Do you mean that you have paragraphs formatted with say "Heading 3" in a >> table cell or that you want the text in the first column formatted like >> in a column heading (for which the proper term is _stub_)? >> >> If the latter, and if the formatting you want is bold you can fake it >> with a filter like the one attached. >> >> -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/668fa3f9-b2a2-4d2c-a113-ed93963cc3cbn%40googlegroups.com > > . > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhB9nkcrHiC7XJgFN58WqqYtqotCoPz-1D9GHV0cwiqORg%40mail.gmail.com.