Skip to content

Commit

Permalink
Update base.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Bistutu authored Sep 8, 2024
1 parent 96f6417 commit 8c8c2c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions base.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import (
"strings"
)

// Text generates plain text.
func (mw *markdownWriter) Text(text string) error {
return mw.writeLine(text)
}

// H1 generates a level 1 heading
func (mw *markdownWriter) H1(text string) error {
return mw.writeLine(fmt.Sprintf("# %s", text))
Expand Down

0 comments on commit 8c8c2c5

Please sign in to comment.