Skip to content

Mediawiki to GFM: + in row table results in error #10491

@Dolu89

Description

@Dolu89

Hello,
I discovered a problem on the converter mediawiki to gfm in table

Pandoc version (MacOS X)

pandoc 3.6
Features: +server +lua
Scripting engine: Lua 5.4

Source mediawiki

{| class="wikitable"
|-
!
!0
!1
!2
!3
!4
!5
!6
!7
|-
!+0
|q||p||z||r||y||9||x||8
|-
!+8
|g||f||2||t||v||d||w||0
|-
!+16
|s||3||j||n||5||4||k||h
|-
!+24
|c||e||6||m||u||a||7||l
|}

Mediawiki result
image

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

The error result is the following

Error at "./test.mediawiki" (line 13, column 1):
unexpected '!'
!+0
^

The generation works if I remove the + before the 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions