Comments (6)
Thank you for your fast feedback. Shouldn't this issue be considered as closed now ?
from pandoc.
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.
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.
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.
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 |
| >. Right-aligned cell | <. 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.
Commit 3490932 should improve things considerably.
from pandoc.
Related Issues (20)
- Docker images out of date HOT 1
- hard_line_breaks extension (already present for markdown) for djot writer HOT 2
- Fenced code attributes produce no line numbers in PowerPoint HOT 2
- HTML Reader: figure with table or image both has Image caption in result DOCX HOT 7
- Missing reference in `sitemap.json` with `chunkedhtml` writer HOT 7
- validation errors in content.opf HOT 10
- Unexpected character `◻` when using `\newenvironment` HOT 3
- DOCX reader to support row head
- HTML writer with embedded resources wrongly displays the same image the second time HOT 2
- error with table ColWidth "default" and numeric when convert to html HOT 2
- DOCX reader misses a paragraph HOT 6
- Unwanted block quotes in lists when converting ODT generated from DOCX HOT 4
- Pandoc bad export from md to typst (#horizontalrule error) HOT 3
- wikilinks_title_after_pipe unexpected '2' Error mixed markdown and wikilinks HOT 1
- New `--number-sections` behavior from 3.1.12 increments counter in numbering even when `.unnumbered` class is used
- Incomplete RawBlocks of some environments inside LaTeX tables HOT 7
- DOCX reader should handle table caption created in non-English Microsoft Word
- HTML: No more auto-wrapping of overlong source code lines in printed media HOT 1
- Markdown writer creates nested emph and strong sections HOT 3
- Valid Word docx creates corrupted .docx when used as reference HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandoc.