Skip to content

Commit

Permalink
🎨 Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 30, 2024
1 parent 04ddbea commit a4e0753
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a4e0753

Please sign in to comment.