Giter Club home page Giter Club logo

Comments (6)

PowerKiKi avatar PowerKiKi commented on May 18, 2024 1

Thank you for your fast feedback. Shouldn't this issue be considered as closed now ?

from pandoc.

jgm avatar jgm commented on May 18, 2024

Note that Pandoc's internal table model is limited in various ways -- it does not support attributes or colspan. That is why the textile table is not interpreted as you would like it to be.

from pandoc.

nicerobot avatar nicerobot commented on May 18, 2024

It'd be at least useful if it would ignore the attributes/spans and still convert the table and just retain the attributes within the cell or even dispose of them. As it stands, it completely ignores the table.

from pandoc.

paul-r-ml avatar paul-r-ml commented on May 18, 2024

Hi, advanced textile table are unlikely to be supported anytime soon by pandoc, because they have no intermediate representation. IMO this is fine, since it keeps pandoc clean, and wiki table is a domain that mostly sucks anyway. Anything beside the most trivial table is a pain to write in a plain text format and quickly becomes unreadable. That's a limitation of the wiki text model. If your target backend can render advanced tables (HTML, LaTeX), you can certainly include them raw for best results.

from pandoc.

PowerKiKi avatar PowerKiKi commented on May 18, 2024

In #1922 (comment) @jgm expressed the idea to ignore unsupported formatting markers, so they at least don't end up in final ouput. I'd be in favor of that, since that would kind of solve mangled output such as the following case:

Textile input:

|{background:#ddd}. Cell with background|Normal|
|\2. Cell spanning 2 columns|
|/2. Cell spanning 2 rows|one|
|two|
|>. Right-aligned cell|<. Left-aligned cell|

Actual output to markdown_github:

|                                          |                         |
|------------------------------------------|-------------------------|
| {background:\#ddd}. Cell with background | Normal                  |
| \\2. Cell spanning 2 columns             |
| /2. Cell spanning 2 rows                 | one                     |
| two                                      |
| &gt;. Right-aligned cell                 | &lt;. Left-aligned cell |

Minimal expected output, by dropping all formatting markup:

|                         |                   |
|-------------------------|-------------------|
| Cell with background    | Normal            |
| Cell spanning 2 columns |
| Cell spanning 2 rows    | one               |
| two                     |
| Right-aligned cell      | Left-aligned cell |

Better expected output, by kind of supporting rowspan:

|                         |                   |
|-------------------------|-------------------|
| Cell with background    | Normal            |
| Cell spanning 2 columns |
| Cell spanning 2 rows    | one               |
|                         | two               |
| Right-aligned cell      | Left-aligned cell |

from pandoc.

jgm avatar jgm commented on May 18, 2024

Commit 3490932 should improve things considerably.

from pandoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.