hexojs/hexo-renderer-pandoc

Hi, pandoc markdown renderer imcompletely in rendering markdown file.

Ytinifni-zc opened this issue · 6 comments

Thank you for the plugin of hexo pandoc.

I found in my blog, renderer not works well in especially the list of md files. For example, when I write "1. ... 2. ... 3. ..." or "- ... - ..." in md files, renderer give me an ordinary result in html instead of element such as "<li></li>".

Here is my blog : http://blog.ytinifni.net/

wzpan commented

It shouldn't happen. Have you write such contents in multiple lines?

Yes, I write the list element in multiple lines. And I tried number list and dot list, but both of them were failed. Like the picture:

and

Sorry about the Chinese pictures.

wzpan commented

I see. You should leave an empty line before list. e.g.

数据仓库的几个挑战:

1. XXX
2. XXX
3. XXX

Seems there are a little differences of pandoc and markdown.
Thank you very much!

wzpan commented

The original markdown requires that too.
It's a good practice to separate different blocks with empty line.

jdhao commented

Yes, indeed. Pandoc is strict about that. Before list, table and quotation, you must leave out a blank line. Or the generated html will not be what you want.