markd icon indicating copy to clipboard operation
markd copied to clipboard

Lesser-than sign in code block isn't escaped

Open vulpivia opened this issue 4 years ago • 2 comments

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.

vulpivia avatar Jan 31 '22 21:01 vulpivia

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.

straight-shoota avatar Jan 31 '22 21:01 straight-shoota

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

vulpivia avatar Jan 31 '22 21:01 vulpivia