Maruku markdown deletes any html in list item

痴心易碎 提交于 2019-12-24 02:34:07

问题


Simple example here.

Source:

<span> hello </span>

1. <span> world </span>

Target:

<span> hello </span>
<ol>
<li />
</ol>

Seems to happen no matter what tag I use. As far as I can tell from daring fireball's markdown documentation, this should be legal; span tags can appear anywhere. I am on Jekyll and do not know what layer is responsible for this (bug in Jekyll's markdown renderer, my not using markdown correctly, etc.) For good measure let's see what SO does with the same source:

hello

  1. world

Looks like SO renders correctly.

This does not affect redcarpet or kramdown and appears to be a bug in Maruku. Bug report submitted here: https://github.com/bhollis/maruku/issues/88

Leaving Jekyll tag as Maruku is the default markdown processor for Jekyll, and that's how I found this.

来源:https://stackoverflow.com/questions/17004586/maruku-markdown-deletes-any-html-in-list-item

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!