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

DokuWiki reader: parse table alignment #5202

Closed
link2xt opened this issue Jan 7, 2019 · 1 comment
Closed

DokuWiki reader: parse table alignment #5202

link2xt opened this issue Jan 7, 2019 · 1 comment

Comments

@link2xt
Copy link
Collaborator

link2xt commented Jan 7, 2019

DokuWiki format allows to align table cells with whitespace. Pandoc has no way to represent individual cell alignment, but it may still be useful to align the whole column according to header alignment, if header is present.

This would allow Pandoc to correctly parse such tables:

^          right^   center   ^left            ^
|  right-aligned|  centered  |left-aligned    |
|  right-aligned|  centered  |left-aligned    |
@link2xt link2xt mentioned this issue Jan 7, 2019
18 tasks
damon-sava-stanley added a commit to damon-sava-stanley/pandoc that referenced this issue Feb 11, 2022
Within each cell, determine the cell alignment as per
https://www.dokuwiki.org/wiki:syntax#tables. The current approach, as
per the issue treats the first row's alignment as determining
that of the entire column. Given this, it wastes some work in
determining an alignment for every cell.
@damon-sava-stanley
Copy link
Contributor

Howdy, I've taken a stab at this (in the linked pull request), though it is a bit of a bodge.

damon-sava-stanley added a commit to damon-sava-stanley/pandoc that referenced this issue Feb 11, 2022
Within each cell, determine the cell alignment as per
https://www.dokuwiki.org/wiki:syntax#tables. The current approach, as
per the issue treats the first row's alignment as determining
that of the entire column. Given this, it wastes some work in
determining an alignment for every cell.
@jgm jgm closed this as completed in d3716ea Feb 11, 2022
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