Giter VIP home page Giter VIP logo

copy-excel-paste-markdown's Introduction

Copy Excel Paste Markdown

Copy a table in Excel (or other spreadsheet programs) and paste it as a Markdown table.

demo

Column Alignments

You can optionally specify column alignment information by prepending one of the following to the column heading names in Excel:

  • ^c - center alignment
  • ^r - right alignment
  • ^l - left alignment (the default)

For example: enter the following in Excel to right-align the second column and center-align the third column:

animal ^rweight ^ccolor
dog 30lb tan
dog 85lb black
cat 18lb calico

This will produce the following markdown table when pasted:

| animal | weight | color  |
|--------|-------:|:------:|
| dog    | 30lb   | tan    |
| dog    | 85lb   | black  |
| cat    | 18lb   | calico |

Contributors

copy-excel-paste-markdown's People

Contributors

johntube avatar jonmagic avatar mhlavacek avatar thisdavej avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

copy-excel-paste-markdown's Issues

table width problem

even the screen is enough,the table also not use it and you need scroll it.

"Uncaught RangeError: Invalid array length" with empty cells

This table works:

image

And produces this:

1 2 3
3 4 5
6 7 8

But this one doesn't:

image

It gives this in the console:

image

script.js:2	3
script.js:24 3	4	5
script.js:24 6	7	8
script.js:37 Uncaught RangeError: Invalid array length
    at script.js:37
    at Array.map (<anonymous>)
    at script.js:36
    at Array.map (<anonymous>)
    at HTMLTextAreaElement.<anonymous> (script.js:30)

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.