fix: remove debug statements
This commit is contained in:
parent
96d4f768d9
commit
97e2e50015
@ -53,11 +53,9 @@ func ViewQuestion(c *gin.Context) {
|
|||||||
answerCodeBlocks := questionCodeBlockRegex.FindAllString(questionBodyParentHTML, -1)
|
answerCodeBlocks := questionCodeBlockRegex.FindAllString(questionBodyParentHTML, -1)
|
||||||
for _, codeBlock := range answerCodeBlocks {
|
for _, codeBlock := range answerCodeBlocks {
|
||||||
codeBlock = utils.StripBlockTags(codeBlock)
|
codeBlock = utils.StripBlockTags(codeBlock)
|
||||||
fmt.Println(codeBlock)
|
|
||||||
|
|
||||||
// syntax highlight
|
// syntax highlight
|
||||||
highlightedCodeBlock := utils.HighlightSyntaxViaContent(codeBlock)
|
highlightedCodeBlock := utils.HighlightSyntaxViaContent(codeBlock)
|
||||||
fmt.Println(highlightedCodeBlock)
|
|
||||||
|
|
||||||
// replace the code block with the highlighted code block
|
// replace the code block with the highlighted code block
|
||||||
questionBodyParentHTML = strings.Replace(questionBodyParentHTML, codeBlock, highlightedCodeBlock, 1)
|
questionBodyParentHTML = strings.Replace(questionBodyParentHTML, codeBlock, highlightedCodeBlock, 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user