You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[cols="2"]
|===
a|This cell is prefixed with an `a` so the following list is rendered with the AsciiDoc list element styles.
* List item 1* List item 2* List item 3|This cell *is not* prefixed with an `a` so the following list is not rendered with the AsciiDoc list element styles.* List item 1* List item 2* List item 3
a|This cell is prefixed with an `a` so the following paragraph is rendered with the `lead` style.
[.lead]
I am a paragraph styled with the lead attribute.
|This cell *is not* prefixed with an `a` so the following paragraph is not rendered with the `lead` style.
[.lead]
I am a paragraph styled with the lead attribute.
|===
When I generate the PDF the end result looks like this:
when it should look like this (screenshot from Asciidoctor manual):
The text was updated successfully, but these errors were encountered:
As I mention in #6, what we're going to need to do is implement a custom cell handler in Prawn. That's the only way we'll be able to delegate back into the converter so that the page calculations can be handled by Prawn.
mojavelinux
changed the title
Asciidoc table cell styling not functioning in PDF output
AsciiDoc table cell styling not functioning in PDF output
Aug 8, 2016
…bles) (PR #707)
- use custom Cell implementation to support AsciiDoc table cells
- supports colspan, rowspan and vertical alignment
- works best if column is assigned an explicit (relative) width
- does not permit content that exceeds the height of one page
- extra padding from last block is added to bottom of cell
- does not (yet) inherit font properties from table cell
Also resolves duplicates #315, #445 and #358.
Version
My Wish
To insert an unordered list in the cell of a table in a PDF file.
The Problem
The table below is a direct copy from the code block example entitled:
Comparing cells using AsciiDoc styles and no AsciiDoc styles
from the asciidoc table cell formatting section of the Asciidoctor Manual.
When I generate the PDF the end result looks like this:
![screen shot 2016-05-17 at 11 30 12](https://cloud.githubusercontent.com/assets/3904395/15317673/c84e721e-1c22-11e6-8c27-ab8660db1e97.png)
when it should look like this (screenshot from Asciidoctor manual):
The text was updated successfully, but these errors were encountered: