icyleaf / markd

Yet another markdown parser, Compliant to CommonMark specification, written in Crystal.
MIT License
109 stars 30 forks source link

Lesser-than sign in code block isn't escaped #48

Closed vulpivia closed 1 year ago

vulpivia commented 2 years ago

This is a bug I detected while using the Crystal documentation generator, but since that uses markd, I'm assuming a bug report here makes more sense.

Creating documentation for the following code

# `<test`
module Test
end

inserts <code><test</code> into the final documentation. Expected behavior would be transforming < into &lt; inside code tags.

straight-shoota commented 2 years ago

This is actually a bug in the Crystal compiler's usage of this shard: https://github.com/crystal-lang/crystal/issues/11685 It has been fixed since 1.3.1.

markd itself is not affected, it should properly escape inline code.

vulpivia commented 2 years ago

Oh, must have missed that issue. Thank you, this can be closed then.