Fan Zhen Coder & Teacher

MarkDown表格生成器

2014-05-10

一个非常方便的表格生成网页,支持 Markdown,LaTeX,Html。格式可调。也可以导入CSV。

试用了一下,不错:

Tables Are Cool
col 1 is left-aligned $1600
col 2 is centered $12
col 3 is right-aligned $1
Foot1 Foot2 Foot3

注意:由于我站使用的是Bootstrap,它要的表格是这样的: <table class=”table”><tr><td></td></tr></table>, 所以必须修改_config.yml,加入 markdown: kramdown,并且在表格后面添加:

{: class="table}

如果需要斑马纹,加上

{: class="table table-striped"}
Tables Are Cool
col 1 is left-aligned $1600
col 2 is centered $12
col 3 is right-aligned $1
Foot1 Foot2 Foot3

如果需要边框,加上

{: class="table table-bordered"}
Tables Are Cool
col 1 is left-aligned $1600
col 2 is centered $12
col 3 is right-aligned $1

如果需要更紧凑,加上

{: class="table table-condensed"}
Tables Are Cool
col 1 is left-aligned $1600
col 2 is centered $12
col 3 is right-aligned $1

Comments