Giter Site home page Giter Site logo

Comments (5)

fcrespo82 avatar fcrespo82 commented on June 18, 2024 1

@ahorn42 I’ll look into it when I have some free time. Maybe tonight.

from vscode-markdown-table-formatter.

ahorn42 avatar ahorn42 commented on June 18, 2024

I can trigger it with the following input

| a | a | a | a |
|-|-|
| bb | bb |

IIRC this worked some version ago - but maybe this is only thinking of wishes :D

from vscode-markdown-table-formatter.

fcrespo82 avatar fcrespo82 commented on June 18, 2024

On this particular case the table is not properly structured since the header has four columns and the alignment and body has only two. If you paste this table on GitHub it won't format as well.

I guess I could add a little more descriptive message, but I don't see how this is a table that the extension should format.

If you can show me how this is an important feature I could try to add a configuration like: "Allow empty columns", in that case the last two columns would be empty and the table would format as.

a a a a
bb bb

from vscode-markdown-table-formatter.

ahorn42 avatar ahorn42 commented on June 18, 2024

thanks for your reply and having a look at it! - and yes, a more descriptive error message would be nice - this sound more like something went critically wrong ;-)

I am not sure, but I think a least something like

| a | a | a | a |
|-|-|-|-|
| bb | bb |

was expanded automatically in the past? - But I would really enjoy this feature. But I am not sure what would be better, to have look at the header row or at the headerrow and the row after. Because if only looking at the header row you might also catch some |-separeted strings and format them as a table :D
Or maybe trigger on something like:

| a | a | a | a |
|-|

to automatically prepare a table with four columns?

from vscode-markdown-table-formatter.

fcrespo82 avatar fcrespo82 commented on June 18, 2024

Added some better erro message on 2.0.4 but I'll leave this open to track any improvement or implementation of that feature.

from vscode-markdown-table-formatter.

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.