fix glamour dep
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
package common
|
package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/charmbracelet/glamour"
|
|
||||||
gansi "github.com/charmbracelet/glamour/ansi"
|
gansi "github.com/charmbracelet/glamour/ansi"
|
||||||
|
"github.com/charmbracelet/glamour/styles"
|
||||||
)
|
)
|
||||||
|
|
||||||
func strptr(s string) *string {
|
func strptr(s string) *string {
|
||||||
@@ -12,7 +12,8 @@ func strptr(s string) *string {
|
|||||||
// StyleConfig returns the default Glamour style configuration.
|
// StyleConfig returns the default Glamour style configuration.
|
||||||
func StyleConfig() gansi.StyleConfig {
|
func StyleConfig() gansi.StyleConfig {
|
||||||
noColor := strptr("")
|
noColor := strptr("")
|
||||||
s := glamour.DarkStyleConfig
|
s := styles.DarkStyleConfig
|
||||||
|
|
||||||
s.H1.BackgroundColor = noColor
|
s.H1.BackgroundColor = noColor
|
||||||
s.H1.Prefix = "# "
|
s.H1.Prefix = "# "
|
||||||
s.H1.Suffix = ""
|
s.H1.Suffix = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user