Skip to content

Multiline comments do not hide @Step in tutorials. #180

Open
@mbrandonw

Description

@mbrandonw

Description

If you use a multiline HTML comment with @Steps inside, those steps will be rendered in docs:

<!--

This text will not be rendered in docs.

@Step {
  This text **will** be rendered in docs.
}

--!>

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.

Expected Behavior

I would expect that everything inside <!-- --> is omitted from rendering.

Actual behavior

Instead, @Steps are rendered.

Steps To Reproduce

Put the following in any tutorial to see that the step will be rendered:

<!--

This text will not be rendered in docs.

@Step {
  This text **will** be rendered in docs.
}

--!>

Swift-DocC Version Information

Xcode 15.4

Swift Compiler Version Information

swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0

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