clifmt/internal/transform/markdown/markdown.go

25 lines
364 B
Go
Raw Normal View History

package markdown
func Transform(input string) (string, error) {
// 1. bold
bold, err := boldTransform(input)
if err != nil {
return "", err
}
// 2. italic
italic, err := italicTransform(bold)
if err != nil {
return "", err
}
// 3. italic
underline, err := underlineTransform(italic)
if err != nil {
return "", err
}
return underline, nil
}