Right, understood. I agree that the "table" class enables a distinction between layout tables and real ones. My case is DOCX -> HTML, however, something like:

pandoc -s sourcetest.docx --reference-doc=custom-reference.docx --extract-media=./ --css=css/spectre.css -t html -o sourcetest.html

If the HTML writer were to add the "table" class universally, then tables used for layout in the source DOCX would end up with borders (assuming Bootstrap et al).

On Thursday, 31 January 2019 10:09:36 UTC-5, John MacFarlane wrote:

To be more precise:  The suggestion above was just to
add the 'table' class to the default HTML output, not
to docx output.

I believe the reason bootstrap et al only style tables
with class 'table' is to distinguish "real" tables
from tables used for layout (e.g. columns) in HTML.
However, it seems to me that all pandoc-produced
tables should be real tables. There may be exceptions,
though -- do people use pandoc tables for layout in
HTML?

John MacFarlane <j...-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes:

> Adding a 'table' class wouldn't affect docx output
> unless we specifically modified the docx writer to behave
> differently in that case.
>
> Ken Dow <theke...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
>> It's not uncommon for people to use unbordered tables for layout in DOCX.
>> Adding a "table" class automatically would produce HTML borders where they
>> weren't intended.
>>
>> In your first response to this, you suggested "insert it into a Div with
>> attributes". Is there some way to achieve that with a DOCX source?
>>
>> On Thursday, 31 January 2019 00:11:10 UTC-5, John MacFarlane wrote:
>>>
>>> Ken <theke...-97jfqw80gc5Wk0Htik3J/w@public.gmane.org <javascript:>> writes:
>>>
>>> > That would be great - it comes up because frameworks like Bootstrap and
>>> Spectre uses <table class=“table”> to apply their styling.
>>>
>>> That's true.  It's tempting to just add that class by
>>> default in the HTML writer...  I wonder if that would
>>> cause any problems?
>>>
>>>
>>
>> --
>> 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-discus...@googlegroups.com.
>> To post to this group, send email to pandoc-...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/fdd9a7c1-f66f-4116-bbff-2ee91842c4a8%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ae8d390d-1006-4c90-96ed-3f921f7a0dfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.