hexojs/hexo-renderer-pandoc

多级列表转换异常

hushanjushi opened this issue · 3 comments

markdown

1. 离子  
   - 元素种类  
   - 原子数  
   - 原子质量(最大丰度同位素(MAI)质量)  
   - 入射粒子能量范围(最高,最低)  
2. 靶材  
   - 靶材A  
      * 元素种类  
      * 原子数  
      * 原子质量(平均自然质量)  
      * 丰度  
   - 靶材B(可省略)  
   - ...  

期望:
image
实际:
image

Hi @hushanjushi,

I'd suspect the issue is not with this plugin nor with pandoc, but is with your theme.

I rendered your markdown with the hexo theme Landscape and this is what I got:

image

It looks like your nested list is correctly recognized and rendered. The only issue is your theme does not style nested list to be indented and does not use the bullet markers as you'd like. You should modify your theme style to achieve the desired apparence.

Hi @ChenglinYu, I'm sorry to say this but please refrain yourself from posting extraneous comments to the issue reports. Please correct me, but I don't recognize you being involved in the development of this plugin, so please do not reply 收到 to our issue reports, as it can be mistakenly interpreted by the reporters of the issues as that you acknoledge the issues on behalf of the development team.

@RichardYan314 Hi, I'm a developer of Hexo theme NexT. In the webpage provided by @hushanjushi (https://blog.hushanju.com/posts/3700036833/), the HTML content of the list is not wrapped by <ul> or <ol> elements.
截屏2022-03-06 下午2 57 22

Thus the bug is irrelevant with the theme.