Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Razor does not respect html comments inside a razor block #302

@yishaigalatzer

Description

@yishaigalatzer

See original comment - https://aspnetwebstack.codeplex.com/workitem/2233

Does not work

@{
    <!-- Hello, I'm a comment that will break razor --->
}

Works

    <!-- Hello, I'm a comment that will break razor --->

If you have more than 2 dashes at the end of the comment - Razor shows compilation error. Only 2 dashes are accepted. However, if this comment is outside a code block, it works fine.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions