mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-11 08:06:25 -04:00
We're using glamour for rendering the markdown, and I'm interested in using it in other places too
16 lines
334 B
Go
16 lines
334 B
Go
package termenv
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// Hyperlink creates a hyperlink using OSC8.
|
|
func Hyperlink(link, name string) string {
|
|
return output.Hyperlink(link, name)
|
|
}
|
|
|
|
// Hyperlink creates a hyperlink using OSC8.
|
|
func (o *Output) Hyperlink(link, name string) string {
|
|
return fmt.Sprintf("\x1b]8;;%s\x1b\\%s\x1b]8;;\x1b\\", link, name)
|
|
}
|