Closed amshkv closed 3 years ago
I can't reproduce this at all:
irb(main):002:0" str = <<~DOC
irb(main):003:0" * simple list item
irb(main):004:0" * simple list item
irb(main):005:0"
irb(main):006:0" ```java
irb(main):007:0" import
irb(main):008:0" ```
irb(main):009:0> DOC
irb(main):011:0> CommonMarker.render_html(str, :DEFAULT)
=> "<ul>\n<li>simple list item</li>\n<li>simple list item</li>\n</ul>\n<pre><code class=\"language-java\">import\n</code></pre>\n"
How are you calling Commonmarker?
CommonMarker.render_doc(str, :DEFAULT).to_commonmark
we use render_doc
to preprocess images
test with CommonMarker.render_html(str, :DEFAULT)
does not contain end list
See here:
This is hard to avoid.
Given that this is an issue in the core Commonmark, I would suggest you work with them to address it, @amshkv. Since this is only a Ruby wrapper to that C library there's not much we can do, as we don't want to deviate from their implementation.
Hi. i have next sample:
asdf