hlxsites / prisma-cloud-docs-website

blocks and gdoc authored content for https://docs.prismacloud.io
Apache License 2.0
3 stars 2 forks source link

[AsciiDoc conversion] Tables with cells that span columns aren't rendered correctly #200

Closed iansk closed 10 months ago

iansk commented 10 months ago

Tables that have rows that span columns aren't being rendered correctly.

For example, see this page on Franklin:

https://main--prisma-cloud-docs-website--hlxsites.hlx.live/en/enterprise-edition/content-collections/dashboards/dashboards-get-started

The AsciiDoc source for this page is here.

https://github.com/hlxsites/prisma-cloud-docs/blob/main/docs/en/enterprise-edition/content-collections/dashboards/dashboards-get-started.adoc

A good reference for how the table should like is the GitHub preview (see image below). The first row spans both columns. The second row has two columns. The width of the first column occupies 30% of the total table width. The second column occupies 70% of the total table width.

franklin-uat-tables-with-cells-that-span-rows

The key syntax for the table is here. The 2+ indicates the cell should span two columns.

[cols="30%a,70%a"]
|===

2+|Cloud Security 
|*Dashboard*
|*Description*

References: