Skip to content

Hyperlink support #82

@sxyazi

Description

@sxyazi

I'm using ansi-to-tui in Yazi (a file manager) to parse the ANSI sequences emitted by glow (a markdown renderer) for markdown preview, but the OSC 8 sequences get replaced with blanks, which isn't ideal, it'd be awesome if there were a way to keep those hyperlink texts.

Since the crate returns a Text and Text itself doesn't support hyperlinks and needs a hack to do so at the moment, maybe this requires ratatui/ratatui#902 getting resolved first? Or maybe it can export a custom widget, e.g. a wrapper of Text with that hack, to support more sequences?

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