diff options
Diffstat (limited to 'mardown/ast.go')
| -rw-r--r-- | mardown/ast.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mardown/ast.go b/mardown/ast.go index 3a16903..55fd3b9 100644 --- a/mardown/ast.go +++ b/mardown/ast.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "html/template" + "strings" ) var ErrUnkownLexType = errors.New("unkown lex type") @@ -91,3 +92,7 @@ func getBlock(lxs *lexers, newLine bool) (block, error) { } return b, err } + +func trimSpace(s template.HTML) template.HTML { + return template.HTML(strings.TrimSpace(string(s))) +} |
