mirror of
https://github.com/hanzozt/go-term-markdown.git
synced 2026-10-30 20:38:22 +00:00
18 lines
414 B
Go
18 lines
414 B
Go
package markdown
|
|
|
|
type Options func(r *renderer)
|
|
|
|
// Use a custom collection of ANSI colors for the headings
|
|
func WithHeadingShades(shades []shadeFmt) Options {
|
|
return func(r *renderer) {
|
|
r.headingShade = shade(shades)
|
|
}
|
|
}
|
|
|
|
// Use a custom collection of ANSI colors for the blockquotes
|
|
func WithBlockquoteShades(shades []shadeFmt) Options {
|
|
return func(r *renderer) {
|
|
r.blockQuoteShade = shade(shades)
|
|
}
|
|
}
|