Skip to content

Aspire CLI: Markdown errors #13787

@lvde0

Description

@lvde0

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I have a custom publisher that logs some debug info via ILogger<T>.LogDebug("{x}, "<some json here>"). When I run aspire deploy I receive the following error:

An unexpected error occurred: Unbalanced markup stack. Did you forget to close a
[2026-01-06T15:30:03.837Z] tag?

Expected Behavior

User arguments passed to the logger should be properly escaped to prevent markdown errors.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version info

10.0.101

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions