fix: remove debug statements

This commit is contained in:
httpjamesm 2022-12-28 19:10:27 -05:00
parent 96d4f768d9
commit 97e2e50015

View File

@ -53,11 +53,9 @@ func ViewQuestion(c *gin.Context) {
answerCodeBlocks := questionCodeBlockRegex.FindAllString(questionBodyParentHTML, -1)
for _, codeBlock := range answerCodeBlocks {
codeBlock = utils.StripBlockTags(codeBlock)
fmt.Println(codeBlock)
// syntax highlight
highlightedCodeBlock := utils.HighlightSyntaxViaContent(codeBlock)
fmt.Println(highlightedCodeBlock)
// replace the code block with the highlighted code block
questionBodyParentHTML = strings.Replace(questionBodyParentHTML, codeBlock, highlightedCodeBlock, 1)