Documentation
¶
Overview ¶
Package utils provides utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandPath ¶
ExpandPath expands tilde and all environment variables from the given path.
func GlamourStyle ¶
func GlamourStyle(style string, isCode bool) glamour.TermRendererOption
GlamourStyle returns a glamour.TermRendererOption based on the given style.
func IsMarkdownFile ¶
IsMarkdownFile returns whether the filename has a markdown extension.
func RemoveFrontmatter ¶
RemoveFrontmatter removes the front matter header of a markdown file.
func WrapCodeBlock ¶
WrapCodeBlock wraps a string in a code block with the given language.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.