cli-table2
cli-table2 copied to clipboard
Preset for generating md-like tables
It's something like:
style: { compact: true },
chars: {
'top': '' , 'top-mid': '' , 'top-left': '' , 'top-right': '',
'bottom': '' , 'bottom-mid': '' , 'bottom-left': '' , 'bottom-right': '',
'left': '|' , 'left-mid': '|' , 'mid': '-' , 'mid-mid': '|',
'right': '|' , 'right-mid': '|' , 'middle': '|'
},
I guess it's a common case and would be very nice to have this preset as build-in one to use as simple as:
preset: 'md'
Any luck with getting this to happen? I can't figure out how to have the header styled differently from the body.
@zxqfox - we got this figured out (not the cleanest) but we'll be using our solution for our lib. I was going to cheat and just do 3 dashes, required by markdown, but our CTO jumped in and did it 100%.
Was added here: https://github.com/infinitered/gluegun/pull/284