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

Handle col/rowspans in mediawiki tables #6992

Closed
Dolu89 opened this issue Dec 30, 2020 · 2 comments
Closed

Handle col/rowspans in mediawiki tables #6992

Dolu89 opened this issue Dec 30, 2020 · 2 comments

Comments

@Dolu89
Copy link

Dolu89 commented Dec 30, 2020

Hello,
I discovered a problem on the converter mediawiki to gfm (and all markdown destination)
It cuts off everything after the colspan
Pandoc version (ubuntu 20.04 LTS)

pandoc 2.5
Compiled with pandoc-types 1.17.5.4, texmath 0.11.2.2, skylighting 0.7.7

Source mediawiki

Block template creation can be influenced by various parameters:
{| class="wikitable"
!colspan=4|template request
|-
! Key !! Required !! Type !! Description
|-
| capabilities || No || Array of Strings || SHOULD contain a list of the following, to indicate client-side support: [[#Optional: Long Polling|"longpoll"]], "coinbasetxn", "coinbasevalue", [[bip-0023.mediawiki#Block Proposal|"proposal"]], [[bip-0023.mediawiki#Logical Services|"serverlist"]], "workid", and any of the [[bip-0023.mediawiki#Mutations|mutations]]
|-
| mode || No || String || MUST be "template" or omitted
|}

Result of mediawiki
Capture d’écran de 2020-12-30 10-26-05

I run this command to transform my mediawiki file to a md file
pandoc -f mediawiki -t gfm ./mediawiki-file.mediawiki -o ./gfm-file.md

Result provided by pandoc (gfm)

Block template creation can be influenced by various parameters:

| template request |
| ---------------- |
| Key              |
| capabilities     |
| mode             |

Result of gfm
Capture d’écran de 2020-12-30 10-29-44

@jgm
Copy link
Owner

jgm commented Dec 30, 2020

Until recently pandoc could not represent col/rowspans in tables.
This has changed in the basic types, but we haven't updated all the readers and writers yet.

@jgm jgm changed the title Mediawiki => gfm table with colspan problem Handle col/rowspans in mediawiki tables Dec 30, 2020
@jgm jgm mentioned this issue Dec 30, 2020
9 tasks
@Dolu89
Copy link
Author

Dolu89 commented Oct 7, 2024

Hi, I was just wondering if there are any updates on this issue and its resolution timeline.
Thanks!

@jgm jgm closed this as completed in 0b51580 Oct 9, 2024
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