-->

Maruku markdown deletes any html in list item

2019-07-16 15:29发布

问题:

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.