From 69821d407e50bd1e1a7dffab77a005027444ed11 Mon Sep 17 00:00:00 2001 From: elliotxx <951376975@qq.com> Date: Fri, 25 Feb 2022 15:52:47 +0800 Subject: [PATCH] :boom: feat: support auto space between zh and en --- pkg/md/md.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/md/md.go b/pkg/md/md.go index 7373023..16d14ff 100644 --- a/pkg/md/md.go +++ b/pkg/md/md.go @@ -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