aboutsummaryrefslogtreecommitdiff
path: root/markdown/lexer.go
diff options
context:
space:
mode:
Diffstat (limited to 'markdown/lexer.go')
-rw-r--r--markdown/lexer.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/markdown/lexer.go b/markdown/lexer.go
index d5c0f5f..30587e4 100644
--- a/markdown/lexer.go
+++ b/markdown/lexer.go
@@ -1,6 +1,9 @@
package markdown
-import "fmt"
+import (
+ "fmt"
+ "strings"
+)
type lexerType string
@@ -26,7 +29,7 @@ type lexer struct {
}
func (l lexer) String() string {
- return fmt.Sprintf("%s(%s)", l.Type, l.Value)
+ return fmt.Sprintf("%s(%s)", l.Type, strings.ReplaceAll(l.Value, "\n", `{\n}`))
}
type lexers struct {