Closed GabeIsman closed 3 months ago
I can't reproduce this. What version of Commonmarker are you running?
irb(main):001> Commonmarker.to_html("_test_<br>test")
=> "<p><em>test</em><!-- raw HTML omitted -->test</p>\n"
irb(main):002> Commonmarker::VERSION
=> "1.1.4"
Huh I'm on the same:
[94] pry(main)> Commonmarker.to_html("_test_<br>hey")
=> "<p>_test_<!-- raw HTML omitted -->hey</p>\n"
[95] pry(main)> Commonmarker::VERSION
=> "1.1.4"
Ruby 3.2.2
I this is fixed in main
, more recently than the latest release (which is indeed 1.1.4).
I reached the same conclusion just now! 1.1.5, released via https://github.com/gjtorikian/commonmarker/issues/306, should have the latest and greatest comrak dependencies. I was indeed running my commands in main
.
Please reopen if the problem persists!
Great, TY!
Here's the test string:
_test_<br>test
It also happens for
strong
s that end in a punctuation mark:**test.**<br>test
. It doesn't seem to matter what the tag is_test._<div>test
.I'm not familiar with Rust but if you point me in the right direction I might be able to help out.