Tar
Tar

Reputation: 9015

How to get non-striped table in AsciiDoctor?

I have this table:

[width="10%", cols="^", options="header"]
|===
| header
| one
| two
| three
| four
|===

Which renders as:

striped

In order to get to none-striped:

enter image description here

I do this:

[width="10%", cols="^", options="header"]
|===
| Header
| one
{set:cellbgcolor:white}| two
| three
| four
|===
{set:cellbgcolor!}

But the disadvantage of this is clear (verbosity, forcing specific color, ...), not to state that it doesn't work in other AsciiDoctor variants (e.g. PDF)

I am aware of issue #1365, but it's very new, and only implemented in the ruby variant of AsciiDoctor, not in its JS variant (with which most of the WYSIWYG editors work).

Long story short - is there anyway to achieve it in present state?

Upvotes: 1

Views: 636

Answers (1)

Kai
Kai

Reputation: 891

Did you try 'stripes=none' (manual)?

[cols="2,4,2,4,2", stripes=none, grid=none, frame=none]
|===
| ^.>| +++_____________________+++ | ^.>| +++_____________________+++ |
| ^.<| Unterschrift                | ^.<| Unterschrift                |
|===

Upvotes: 1

Related Questions