From a4e075314b5ac2a41f4623164e8cd412ee80c99b Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 30 Sep 2024 17:42:59 +0800 Subject: [PATCH] :art: Clean code --- main.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.go b/main.go index 1a47d8b..a40ff0f 100644 --- a/main.go +++ b/main.go @@ -48,9 +48,7 @@ func handleTextBundle(ctx *fasthttp.RequestCtx) { // POST 请求 Body 传入 Markdown 原文;响应 Body 是处理好的 HTML。 func handleMarkdown2HTML(ctx *fasthttp.RequestCtx) { body := ctx.PostBody() - engine := newLute() - CodeSyntaxHighlightLineNum := string(ctx.Request.Header.Peek("X-CodeSyntaxHighlightLineNum")) if "true" == CodeSyntaxHighlightLineNum { engine.SetCodeSyntaxHighlightLineNum(true)