Unable to write HTML comment with HTML tags inside

Hello, I can't write an HTML comment with HTML tags inside.

I'm trying to write this in a comment on an issue.

This worked in version 2021.4.36179 but doesn't work in 2022.2.55618.

It also works in the CommonMark specification test: https://spec.commonmark.org/dingus/?text=1%0A%3C!--%20simple%20comment%20--%3E%0A2%0A%3C!--%20comment%20with%20%3Cb%3Ebold%3C%2Fb%3E%20tag%20--%3E%0A3%0A

1
<!-- simple comment -->
2
<!-- comment with <b>bold</b> tag -->
3

How this code looks in Youtrack:

1 comment
Comment actions Permalink

Hi! 

I'm Sergey from the YouTrack team. 

This is a bug. We'll address it in the scope of this issue: https://youtrack.jetbrains.com/issue/JT-71051/HTML-comments-with-more-tags-inside-arent-hidden.  Please feel free to vote for this issue. This helps us measure how many customers encounter this problem, and you’ll also get subscribed to the issue’s notifications. To do so, sign in to JetBrains YouTrack and hit a thumbs-up icon. 

 

0

Please sign in to leave a comment.