barryclark / jekyll-now

Build a Jekyll blog in minutes, without touching the command line.
MIT License
8.24k stars 35.21k forks source link

creating table in the post #561

Open haogroot opened 8 years ago

haogroot commented 8 years ago

I want to create the table in my post, like the syntax that github flavored markdown support:

If you write like the following code, it will convert to table

First Header | Second Header
------------ | -------------
Content from cell 1 | Content from cell 2
Content in the first column | Content in the second column

It seems that it is not support in kramdown and Jekyll3 only support kramdown. Anybody can help me to use the table in the post. Thank you!

JoaoFOliveira commented 8 years ago

It is supported and the table is created, the issue you have is that those table elements have no styles associated with it. If you want GitHub styling, use this https://gist.github.com/andyferra/2554919

zizzipupp commented 7 years ago

Sorry for my incompetence @JoaoFOliveira , but I have the same problem with my tables here (https://zizzipupp.github.io/Modern-Italian-immigrants-in-Canada-and-Preferential-Attachment/). If the problem is that there is no style associated with them, how do you go about adding it?

misaka-10032 commented 6 years ago

I saw your table style is correct now. Can you please tell me how did you add the style?

Update: I figured this out. See this commit.

zizzipupp commented 6 years ago

Hi Rocky,

what follows here is an example of how tables can be formatted in Jekyll/markdown. It might not be the only solution, but as you might have seen from my blog posts it works.

Some values
Material Value
A 0.75
B 0.47
C 0.4 - 0.7
C 1.0 - 1.8
S 0.15 - 2.0
W 0.07 - 0.17

Best, Francesco

On 29 October 2017 at 05:53, Rocky Cai notifications@github.com wrote:

@zizzipupp https://github.com/zizzipupp I saw your table style is correct now. Can you please tell me how did you add the style?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/barryclark/jekyll-now/issues/561#issuecomment-340239560, or mute the thread https://github.com/notifications/unsubscribe-auth/AWXte-evdiZvw6tOIKOxUpO2fzslf1w4ks5sxBLegaJpZM4I4nSL .