Skip to content

HTML comment that contains @ causes stray "–>" in output #84

Open
@amartini51

Description

@amartini51

Description

Input like the following causes the issue:

Hi there.

<!--
  @test
-->

image

In contrast, this renders correctly:

Hi there.

<!--
  test
-->

image

It seems like DocC is trying to parse an @ directive block in the middle of the comment.

Checklist

  • If possible, I've reproduced the issue using the main branch of this package.
  • This issue hasn't been addressed in an existing GitHub issue.

rdar://101144032

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions