Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonmagic/copy-excel-paste-markdown
Copy a table in Excel (or other spreadsheet programs) and paste it as a Markdown table
https://github.com/jonmagic/copy-excel-paste-markdown
Last synced: 3 days ago
JSON representation
Copy a table in Excel (or other spreadsheet programs) and paste it as a Markdown table
- Host: GitHub
- URL: https://github.com/jonmagic/copy-excel-paste-markdown
- Owner: jonmagic
- License: mit
- Created: 2016-09-01T22:00:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-10-28T04:56:41.000Z (about 2 years ago)
- Last Synced: 2024-12-24T18:11:12.391Z (10 days ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 248
- Watchers: 9
- Forks: 111
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Copy Excel Paste Markdown
Copy a table in Excel (or other spreadsheet programs) and paste it as a Markdown table.
![demo](https://cl.ly/120h1K2Q1Y3H/Screen%20Recording%202016-08-31%20at%2010.31%20PM.gif)
## 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:
```markdown
| animal | weight | color |
|--------|-------:|:------:|
| dog | 30lb | tan |
| dog | 85lb | black |
| cat | 18lb | calico |
```## Contributors
- @jonmagic
- [@thisdavej](https://github.com/thisdavej)
- [@JohnTube](https://github.com/JohnTube)
- [@mhlavacek](https://github.com/mhlavacek)