klugjo / hexo-theme-clean-blog

Hexo implementation of Clean Blog http://blackrockdigital.github.io/startbootstrap-clean-blog/index.html
MIT License
401 stars 129 forks source link

I cannot show table in markdown #40

Closed HermioneZhang closed 6 years ago

HermioneZhang commented 7 years ago

Something is wrong with resolving tables in markdown into html... I wrote:

|bucket 0  |  bucket 1 |
|:---------: | :---------: |
|E F G H I | A B C D   |

It just did not show what I expected to become like a table

klugjo commented 7 years ago

What is the result ?

You problem might be related to the markdown engine of hexo, not the theme.

Can you provide more details ?

HermioneZhang commented 7 years ago

I mean, it shows original markdown text. It seems like the web cannot resolve this markdown text.

|bucket 0  |  bucket 1 |
|:---------: | :---------: |
|E F G H I | A B C D   |
klugjo commented 7 years ago

Can you try

bucket 0 | bucket 1
--- | ---
EFGHI | ABCD
HermioneZhang commented 7 years ago

I just tried. It didn't work. It shows as the following: image

klugjo commented 7 years ago

I think your problem comes from hexo not this theme.

Can you try with another theme ?

HermioneZhang commented 7 years ago

But why a theme called NEXT can resolve tables?

klugjo commented 7 years ago

It works for me. Please check this page for an example:

http://www.codeblocq.com/assets/projects/hexo-theme-clean-blog/2013/12/24/elements/

image

The corresponding markdown is (copy pasted from my source code)

## Table

| Table Header 1 | Table Header 2 | Table Header 3 |
| - | - | - |
| Division 1 | Division 2 | Division 3 |
| Division 1 | Division 2 | Division 3 |
| Division 1 | Division 2 | Division 3 |