lierdakil / pandoc-crossref

Pandoc filter for cross-references
https://lierdakil.github.io/pandoc-crossref/
GNU General Public License v2.0
909 stars 73 forks source link

Make grid tables visible #418

Closed awelormro closed 6 months ago

awelormro commented 6 months ago

Hello there, sorry for bothering again, but I've found an issue with grid tables, here is a quick example:

+-----------+-----------+
| row1.  | row2|
+=====+=======+
| Lorem| Ipsum|
+----------+----------+
: caption {#tbl:pipetable1}

Just cannot recognize it, also happens in orgmode, Is there a way to make it recognizable? Sort a lua filter or something else? I've partially solutioned it for docx files creating an empty pipe table and deleting just the table, but with more tables is quite problematic. Thanks for the plugin!

paul-kelleher commented 6 months ago

The issue may be with Pandoc (or with your table syntax) and not pandoc-crossref. I think cross-ref will not treat a table as a table if pandoc isn't cool with how it's constructed.

Use the version of your table that I entered here, and see if that works in your document.

awelormro commented 6 months ago

The real deal comes with long header text, when you need a long string in the headers, sort of:

+-------+-------+
| row1  | row2  |
| cosal | cosal |
+=======+=======+
| Lorem | Ipsum |
+-------+-------+

it is not recognized, any way to make tables with long text in headers?

paul-kelleher commented 6 months ago

I use this website: https://www.tablesgenerator.com/text_tables

On Tue, Dec 12, 2023 at 11:23 AM awelormro @.***> wrote:

The real deal comes with long header text, when you need a long string in the headers, sort of:

+-------+-------+ | row1 | row2 | | cosal | cosal | +=======+=======+ | Lorem | Ipsum | +-------+-------+

it is not recognized, any way to make tables with long text in headers?

— Reply to this email directly, view it on GitHub https://github.com/lierdakil/pandoc-crossref/issues/418#issuecomment-1852479832, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXYRURS7HMPA2D7R5TMMIW3YJCHIPAVCNFSM6AAAAABARZNJVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJSGQ3TSOBTGI . You are receiving this because you commented.Message ID: @.***>

awelormro commented 6 months ago

Sorry to bother, it was a Pandoc table recognition, now us solved