Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag for rendering Markdown-friendly tables? #626

Closed
brentajones opened this issue Jun 23, 2016 · 2 comments
Closed

Flag for rendering Markdown-friendly tables? #626

brentajones opened this issue Jun 23, 2016 · 2 comments
Labels

Comments

@brentajones
Copy link

Not sure if this is a feature that would be useful to many. There have been a few occasions where I'd like the output of csvlook to be a Multi-Markdown table. It's very close to being compatible as it is.

Here are the changes I just made to a very simple table to change from csvlook output to make a Markdown-friendly table:

  • Remove top and bottom "frame" rows (the pipe, dashes and plus signs on the first and last line).
  • Remove pipes at beginning and end of lines
  • Change plus signs in separator rows to pipes

previously suggested over on csvkit, @jpmckinney said it's rendered from here

@nbedi
Copy link
Member

nbedi commented Jul 1, 2016

I'll defer this to @onyxfish. Seems reasonable but this will open the door to supporting other table formats as well (although we already support HTML).

I'm not actually sure why the tables are currently formatted the way they are. If there is no particular reason, and a Markdown-friendly table isn't much different, maybe the default should just be Markdown-friendly.

@nbedi nbedi added the feature label Jul 1, 2016
@onyxfish
Copy link
Collaborator

I don't disagree nor do I have a counterargument. Let's change it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants