Skip to content

Commit

Permalink
馃挜 feat: support auto space between zh and en
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotxx committed Feb 25, 2022
1 parent 47b84ad commit 69821d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/md/md.go
Expand Up @@ -66,7 +66,9 @@ func FormatMarkdown(in io.Reader, out io.Writer) (err error) {
}

// Format
luteEngine := lute.New()
luteEngine := lute.New(func(l *lute.Lute) {
l.RenderOptions.AutoSpace = true
})
formatContent := luteEngine.Format("md", markdownContent)

// Output
Expand Down

0 comments on commit 69821d4

Please sign in to comment.