Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to asciidoc writer support for tables with merged cells #8199

Open
trianon1983 opened this issue Jul 25, 2022 · 6 comments
Open

Add to asciidoc writer support for tables with merged cells #8199

trianon1983 opened this issue Jul 25, 2022 · 6 comments

Comments

@trianon1983
Copy link

When i convert from html to asciidoc page with tables with merged cells lose their merging.
It is necessary to add support for colspan and rovspan in assidoc writer.
Thanks

@trianon1983
Copy link
Author

image

@jgm
Copy link
Owner

jgm commented Jul 25, 2022

Can you give the output you'd expect for this input?

@trianon1983
Copy link
Author

yes, sure. in this example i am expecting the following
image

@trianon1983
Copy link
Author

full example:
example.zip

@trianon1983
Copy link
Author

note that the alignment in the cells also does not work correctly

@jgm
Copy link
Owner

jgm commented Jul 26, 2022

OK. Currently we convert the table to a "legacy table" which doesn't support colspans. The new pandoc AST does support colspans for tables, but it will take some work to convert the asciidoc writer to use this more complex representation. It's not a high priority for me at the moment, but maybe someone else will want to take this on? The HTML writer uses this already, so lines 1086 and following of src/Text/Pandoc/Writers/HTML.hs may be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants