diff --git a/render.go b/render.go index a608e8c..93c68b7 100644 --- a/render.go +++ b/render.go @@ -101,7 +101,7 @@ func RenderMarkdown(md []byte, settings Settings) (geminiText []byte, metadata H } md = md[blockEnd+len(yamlDelimiter)*2:] parse: - ast := markdown.Parse(md, parser.NewWithExtensions(parser.CommonExtensions)) + ast := markdown.Parse(md, parser.NewWithExtensions(parser.CommonExtensions|parser.NoEmptyLineBeforeBlock)) var content []byte if settings.Has(WithMetadata) && metadata.PostTitle != "" { content = markdown.Render(ast, gemini.NewRendererWithMetadata(metadata))