Skip to content

Style.ToMarkup() does not include the link #1642

@trackd

Description

@trackd

Information

  • OS: Windows
  • Version: 0.49.1
  • Terminal: Windows Terminal

Describe the bug

when you convert a Style object with ToMarkup() it does not include any link property.
it only adds foreground + background + decoration.

relevant code

To Reproduce

[Spectre.Console.Style]::new(
    [Spectre.Console.Color]::Blue, 
    [Spectre.Console.Color]::Default, 
    [Spectre.Console.Decoration]::Underline, 
    'https://spectreconsole.net/'
    ).ToMarkup()
underline blue

Expected behavior

underline blue link=https://spectreconsole.net/

Please upvote 👍 this issue if you are interested in it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageSomeone needs to take a look at this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions