Left-align headers in markdown table? -


using table example "markdown cheatsheet" on github, this:

| tables        |           | cool  | | ------------- |:-------------:| -----:| | col 3      | right-aligned | $1600 | | col 2      | centered      |   $12 | | zebra stripes | neat      |    $1 | 

enter image description here

my question is, there way left-align header cells?

it depends on implementation using.

tables non-standard feature of markdown , each implementation supports them differently. example, "cheetsheet" pointed in question within markdown here project. project's readme includes following explanation:

to discover can done markdown in markdown here, check out markdown here cheatsheet , other wiki pages.

so "cheetsheet" specific implementation used markdown here.

github has documented there implementation of markdown extension of commonmark spec (commonmark markdown variant not support tables). according example 192, column headers receive same alignment column cells:

| abc | defghi | :-: | -----------: bar | baz  <table> <thead> <tr> <th align="center">abc</th> <th align="right">defghi</th> </tr> </thead> <tbody> <tr> <td align="center">bar</td> <td align="right">baz</td> </tr></tbody></table> 

so, need check specific implementation of markdown using , read implementation's documentation. however, personally, have never come across implementation allows define separate alignment headers cells. in experience, either headers match cells, or headers have no alignment assigned.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -